47d080dbd6
This PR was squashed before being merged into the master branch (closes #8835).
Discussion
----------
[Console] Fixed verbose option when passing verbosity level as option value
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
Currently passing a verbosity level to verbose option on console doesn't work unless using the shotcuts _-v_, _-vv_, _-vvv_.
This also fix _accept_value_ in the xml generated by __console help --xml__ for people using the xml output ;)
Commits
-------
a28eb8b
[Console] Fixed verbose option when passing verbosity level as option value
3.7 KiB
3.7 KiB
UNKNOWN
- help
- list
help
- Description: Displays help for a command
- Usage:
help [--xml] [--format="..."] [--raw] [command_name]
- Aliases:
The help command displays help for a given command:
php app/console help list
You can also output the help in other formats by using the --format option:
php app/console help --format=xml list
To display the list of available commands, please use the list command.
Arguments:
command_name:
- Name: command_name
- Is required: no
- Is array: no
- Description: The command name
- Default:
'help'
Options:
xml:
- Name:
--xml
- Shortcut:
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: To output help as XML
- Default:
false
format:
- Name:
--format
- Shortcut:
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Description: To output help in other formats
- Default:
'txt'
raw:
- Name:
--raw
- Shortcut:
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: To output raw command help
- Default:
false
help:
- Name:
--help
- Shortcut:
-h
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: Display this help message.
- Default:
false
quiet:
- Name:
--quiet
- Shortcut:
-q
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: Do not output any message.
- Default:
false
verbose:
- Name:
--verbose
- Shortcut:
-v|-vv|-vvv
- Accept value: yes
- Is value required: no
- Is multiple: no
- Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Default:
NULL
version:
- Name:
--version
- Shortcut:
-V
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: Display this application version.
- Default:
false
ansi:
- Name:
--ansi
- Shortcut:
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: Force ANSI output.
- Default:
false
no-ansi:
- Name:
--no-ansi
- Shortcut:
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: Disable ANSI output.
- Default:
false
no-interaction:
- Name:
--no-interaction
- Shortcut:
-n
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: Do not ask any interactive question.
- Default:
false
list
- Description: Lists commands
- Usage:
list [--xml] [--raw] [--format="..."] [namespace]
- Aliases:
The list command lists all commands:
php app/console list
You can also display the commands for a specific namespace:
php app/console list test
You can also output the information in other formats by using the --format option:
php app/console list --format=xml
It's also possible to get raw list of commands (useful for embedding command runner):
php app/console list --raw
Arguments:
namespace:
- Name: namespace
- Is required: no
- Is array: no
- Description: The namespace name
- Default:
NULL
Options:
xml:
- Name:
--xml
- Shortcut:
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: To output list as XML
- Default:
false
raw:
- Name:
--raw
- Shortcut:
- Accept value: no
- Is value required: no
- Is multiple: no
- Description: To output raw command list
- Default:
false
format:
- Name:
--format
- Shortcut:
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Description: To output list in other formats
- Default:
'txt'