CommandLineUtils
CommandLineUtils copied to clipboard
Issue with `DefaultHelpTextGenerator` in `GenerateCommands`
GenerateCommands in DefaultHelpTextGenerator does not handle commands correctly when there are multiple levels of subcommands.
To Reproduce
Steps to reproduce the behavior:
- Version 4.0.1
- Define more than one level of subcommands.
- Execute with arguments:
command1 command2 --help - The help text under
Run 'XXX' for more information about a commanddoes not enumerate the commands correctly.
Outputs
Notice the output from the following command line...
li service spec --help
Commands concerning service specifications.
Usage: li service spec [command] [options]
Options:
--help Display help information.
Commands:
merge Merge two or more service spec files.
Run 'spec [command] --help' for more information about a command.
It should be:
Run 'li service spec [command] --help' for more information about a command.