Przeglądaj źródła

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

Fabien Potencier 15 lat temu
rodzic
commit
b31c3e0979
1 zmienionych plików z 2 dodań i 2 usunięć
  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);
         }