nomnom
nomnom copied to clipboard
Hide empty options in usage output
If you only specify options that are all set at hidden: true
then the usage output will still display the empty options list.
Current behavior:
$ cli -h
Usage: cli <command> [options]
command
foo bar
baz foo
Options:
Fixed output:
$ cli -h
Usage: cli <command>
command
foo bar
baz foo
I edited the test that was currently expecting that empty options list, but it's just not very clean to add the options list if none of the options are shown. Seem weird.
Could someone review this PR?
bump :+1:
@harthur did you get a change to review this PR?