-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Something like:
require('commander')
.banner("Output options:")
.option("-o, --output <path>", "Write to path")
.option("--debug", "Write debug info to file")
.banner("Style options:")
.option("--red", "Choose the red style")
.option("--blue", "Choose the blue style")
.option("--green", "Choose the green style")Expected output:
Usage: foobar [options]
Options:
-h, --help output usage information
-V, --version output the version number
Output options:
-o, --output <path> Write to path
--debug Write debug info to file
Style options:
--red Choose the red style
--green Choose the green style
--blue Choose the blue style
aka, "option groups" or "banners" or "messages" (adding this in for anyone searching issues :-) )
Metadata
Metadata
Assignees
Labels
No labels