-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
The simplest possible executable with a single command and no options still forces showing of options:
const program = require('commander');
program
.command('cmd', 'a single cmd with no options')
program
.parse(process.argv);
yields:
./bin/my-cmd
Usage: my-cmd [options] [command]
Options:
-h, --help output usage information
Commands:
cmd a single cmd with no options
help [cmd] display help for [cmd]
Why show options here? Help is already redundant, and the resulting UI is less usable because the intended call to action obscured by a big in-your-face prompt about -h
.
Can we allow setting a property to now show options?
grant, shallwefootball, ScandalousMan and zakcutner