From 34f5a461b22927b94a155b7eea58dbfbe908bf57 Mon Sep 17 00:00:00 2001 From: Ciaran McNulty Date: Sun, 2 Feb 2014 13:46:31 +0000 Subject: [PATCH] Renaming --config-file option to --config --- src/PhpSpec/Console/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PhpSpec/Console/Application.php b/src/PhpSpec/Console/Application.php index 2129b71a9..ef2772faa 100644 --- a/src/PhpSpec/Console/Application.php +++ b/src/PhpSpec/Console/Application.php @@ -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' @@ -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); }