Optional
--When true, populate argv._ with everything before the -- and argv['--'] with everything after the --.
Note that with -- set, parsing for arguments still stops after the --
.
Optional
aliasAn object mapping string names to strings or arrays of string argument names to use as aliases
Optional
booleanA boolean, string or array of strings to always treat as booleans. If true will treat
all double hyphenated arguments without equals signs as boolean (e.g. affects --foo
, not -f
or --foo=bar
)
Optional
defaultAn object mapping string argument names to default values
Optional
stopWhen true, populate argv._ with everything after the first non-option
Optional
stringA string or array of strings argument names to always treat as strings
Optional
unknownA function which is invoked with a command line parameter not defined in the opts configuration object. If the function returns false, the unknown option is not added to argv
Minimist Options for Clirk
Clirk supports all minimist options except
boolean: true
which is IMHO just unnecessary complexity without benefit.