OptionalallowSet to true to allow sub-commands to define options with the same name as parent commands.
When enabled, sub-command options shadow (override) parent options at that command level.
Options are resolved at the current command level first, then bubble up to parent if not found.
Default is false (throws error if duplicate option names are found).
OptionalallowWhen encounter an unknown command, take it and continue processing.
OptionalallowWhen encounter an unknown option, take it without creating an error. Each command can override this setting.
OptionalcmdGeneric usage message for commands. Can also set with the cmdUsage method.
OptionalconfigLoad user config during parse. It's called after argv is parsed, before defaults,
the required check and exec, so config can satisfy required and reach exec handlers.
The command only holds CLI values at this point, like --cwd or --config.
The result is applied with applyConfig and source user.
OptionaldefaultName of the default command. It can be only one of the top level commands. Sub commands cannot be the default command.
OptionalexitCustom exit function. Default is to emit the exit event.
OptionalhandlersCustom event handlers.
OptionalhelpCustom help option setting. Can also set with the help method.
OptionalhelpAlias for the help option. Default: ["?", "h"].
OptionalhelpSet to true to enable zebra striping (alternating dim rows) in help text
for better readability when terminal is wide.
OptionalnameName of your app/program.
OptionalnoSet to true to skip installing default handlers and always return the parsed result, and
allow user to process and handle errors and show help.
OptionaloutputFunction to output text. Default is write to stdout.
OptionalskipSet to true to skip calling command exec handlers after parse.
In case you need to do some processing before invoking the exec handlers, you can set this flag
and call the runExec method yourself.
OptionalskipSet to true to skip calling default command exec handler after parse.
In case you need to do some processing before invoking the exec handlers, you can set this flag
and call the runExec method yourself.
OptionalunknownWhen encounter an unknown command at root level, treat it as arguments to this command.
For example, with unknownCommandFallback: "run", prog unknown becomes prog run unknown.
OptionalusageUsage message. Can also set with the usage method.
OptionalversionVersion of your app/program.
OptionalversionAlias for option to show version. Default: ["V", "v"].
Configuration options for NixClap.