mow.cli icon indicating copy to clipboard operation
mow.cli copied to clipboard

Command Usage strings do not include external arguments

Open coriolinus opened this issue 7 years ago • 0 comments

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)

coriolinus avatar Feb 16 '18 10:02 coriolinus