Open willgcho opened 3 years ago
The current implementation is that: 1- if no "command" is provided, "--help" will list all level1 commands with their options and level2 commands 2- if at least one command is provided: "--help" will list all options for this command and global and level2 commands for it. More information is provided in the manual. A quick fix it to display a line at the end of output of "--help" to tell go to the manual. A better resolution would be to either:
Environment
Description
I was hoping appending
-h
after a subcommand would give helpful information about that specific subcommand. For example, I wanted to learn how to specify the arguments to node subcommands like browse and download, and tried running something likeascli node download -h
.Unfortunately for me I'm asked to add the missing mandatory option
--url
and to "Use '-h' option to get help":After including the required arguments (url/username/password), it now shows a help message, but it's 1) needlessly long (perhaps cut out the first half and only include the relevant section under "COMMAND: node"), and 2) It still only lists what I would've seen by running "ascli -h" and does not further clarify how to use the download subcommand:
And running the download subcommand without
-h
tells me that an argument is missing, but the help message doesn't show me how to properly format the source file list argument: