Optional
allowWhether to allow positional arguments
Optional
envEnvironment object to read/write. Defaults process.env
.
No effect if envPrefix
is not set.
Optional
envPrefix to use when reading/writing the environment variables
If not specified, environment behavior will not be available.
Optional
stopStop parsing flags and opts at the first positional argument.
This is to support cases like cmd [flags] <subcmd> [options]
, where
each subcommand may have different options. This effectively treats
any positional as a --
argument. Only relevant if allowPositionals
is true.
To do subcommands, set this option, look at the first positional, and parse the remaining positionals as appropriate.
Optional
stopConditional stopAtPositional
. If set to a (string)=>boolean
function,
will be called with each positional argument encountered. If the function
returns true, then parsing will stop at that point.
Optional
usageA short usage string. If not provided, will be generated from the options provided, but that can of course be rather verbose if there are a lot of options.
Options provided to the Jack constructor