You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On this page we can see an example command like this:
php application.php list --verbose=2
But as a matter of fact, it is not possible to provide a value to the --verbose option.
If you try it, the result is this exception:
[Symfony\Component\Console\Exception\RuntimeException]
The "--verbose" option does not accept a value.
To reproduce it you can run a simple command like this: php bin/console router:match / --verbose=2
I guess this could be fixed in the InputDefinition (Symfony\Component\Console\Application::getDefaultInputDefinition method), by replacing InputOption::VALUE_NONE with InputOption::VALUE_OPTIONAL for the verbose option?
The text was updated successfully, but these errors were encountered:
TobiasXy
changed the title
--verbose option does not allow values
[Console] --verbose option does not allow values
Apr 14, 2016
this is actually a bug in the doc (--verbose is treated in a special way).
We cannot change the config of the option as you suggest, as it breaks BC badly (using bin/console router:match -v / would then pass / as the --verbose value rather than as an argument). We tried that in the past already.
Please open an issue on the doc repo to ask them to fix the doc.
On this page we can see an example command like this:
php application.php list --verbose=2
But as a matter of fact, it is not possible to provide a value to the
--verbose
option.If you try it, the result is this exception:
To reproduce it you can run a simple command like this:
php bin/console router:match / --verbose=2
I guess this could be fixed in the InputDefinition (Symfony\Component\Console\Application::getDefaultInputDefinition method), by replacing
InputOption::VALUE_NONE
withInputOption::VALUE_OPTIONAL
for the verbose option?The text was updated successfully, but these errors were encountered: