소스 검색

[Console] changed the --color/-c option to --ansi/-a to avoid conflict with --config/-c

Fabien Potencier 15 년 전
부모
커밋
b31c3e0979
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Components/Console/Application.php

+ 2 - 2
src/Symfony/Components/Console/Application.php

@@ -86,7 +86,7 @@ class Application
             new InputOption('--quiet',          '-q', InputOption::PARAMETER_NONE, 'Do not output any message.'),
             new InputOption('--verbose',        '-v', InputOption::PARAMETER_NONE, 'Increase verbosity of messages.'),
             new InputOption('--version',        '-V', InputOption::PARAMETER_NONE, 'Display this program version.'),
-            new InputOption('--ansi',           '-a', InputOption::PARAMETER_NONE, 'Force ANSI color output.'),
+            new InputOption('--ansi',           '-a', InputOption::PARAMETER_NONE, 'Force ANSI output.'),
             new InputOption('--no-interaction', '-n', InputOption::PARAMETER_NONE, 'Do not ask any interactive question.'),
         ));
     }
@@ -145,7 +145,7 @@ class Application
     {
         $name = $input->getFirstArgument('command');
 
-        if (true === $input->hasParameterOption(array('--color', '-c'))) {
+        if (true === $input->hasParameterOption(array('--ansi', '-a'))) {
             $output->setDecorated(true);
         }