Skip to content

Commit

Permalink
Change new 'config' option to 'dotfile' to avoid conflict with modx:i…
Browse files Browse the repository at this point in the history
…nstall command
  • Loading branch information
muzzwood committed Mar 24, 2023
1 parent ce0d77d commit 26f6c3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function initialize(InputInterface $input, OutputInterface $output)

if ($this->loadConfig)
{
$this->config = Gitify::loadConfig($input->getOption('config'));
$this->config = Gitify::loadConfig($input->getOption('dotfile'));
}
if ($this->loadMODX)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ExtractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

if ($input->getOption('packages')) {
$this->extractPackages($input->getOption('config'));
$this->extractPackages($input->getOption('dotfile'));
}

$output->writeln('Done! ' . $this->getRunStats());
Expand Down
2 changes: 1 addition & 1 deletion src/Gitify.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function getDefaultInputDefinition()
new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'),
new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.'),
new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display the Gitify version.'),
new InputOption('--config', null, InputOption::VALUE_REQUIRED, 'Gitify YAML file to use.', '.gitify'),
new InputOption('--dotfile', null, InputOption::VALUE_REQUIRED, 'Gitify YAML file to use.', '.gitify'),
));
}
}

0 comments on commit 26f6c3c

Please sign in to comment.