Skip to content

Commit

Permalink
Renaming --config-file option to --config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciaran McNulty committed Feb 2, 2014
1 parent b7ce176 commit 34f5a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PhpSpec/Console/Application.php
Expand Up @@ -100,8 +100,8 @@ protected function getDefaultInputDefinition()
);
}

$options['config-file'] = new InputOption(
'config-file',
$options['config'] = new InputOption(
'config',
'c',
InputOption::VALUE_REQUIRED,
'Specify a custom location for the configuration file'
Expand Down Expand Up @@ -491,7 +491,7 @@ protected function parseConfigurationFile()
$paths = array('phpspec.yml','phpspec.dist.yml');

$input = new ArgvInput();
if ($customPath = $input->getParameterOption(array('-c','--config-file'))) {
if ($customPath = $input->getParameterOption(array('-c','--config'))) {
if (!file_exists($customPath)) {
throw new FileNotFoundException('Custom configuration file not found at '.$customPath);
}
Expand Down

0 comments on commit 34f5a46

Please sign in to comment.