mow.cli
mow.cli copied to clipboard
Command Usage strings do not include external arguments
I'm working on a whitelist application. Whitelists have a name, WL. Once you name a whitelist, you can manipulate and query them in various ways.
This shows up correctly in the global usage string:
$ ndwhitelist -h
Usage: ndwhitelist WL COMMAND [arg...]
However, WL is omitted from subcommand usage strings:
$ ndwhitelist wl add -h
Usage: ndwhitelist add KEY (-v | -f | -d | -D)
The actual parser parses correctly, but WL is omitted from the usage string. The usage string which should appear is:
Usage: ndwhitelist WL add KEY (-v | -f | -d | -D)