Closed
Description
Lately I've seen a few inconsistencies with the help command, mainly due to arguments merging. I'll use composer as an example.
> composer help list
Usage:
list [options] [--] [<namespace>]
Arguments:
namespace The namespace name
Options:
# Here there are only 3 options, it misses all global options
--xml To output list as XML
--raw To output raw command list
--format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
This issue is due to #3569, I think it should be reverted since @Seldaek fixed it in a more generic way here #7650.
For the help command, the extra arg is still here though :
> composer help
Usage:
help [options] [--] [<command_name>]
Arguments:
# Here it displays an extra argument at the beginning (which belongs to application)
command The command to execute
command_name The command name [default: "help"]
I had submitted #9286 on top of @Seldaek fixes, should I rebase and check if it's still working? Or do you think it can be solved in a better way?