CommandConfig
Hierarchy
- Command
- CommandConfig
Index
Properties
optionalaliases
optionalallowUnknownOptions
Allow unknown options to be parsed, otherwise an error is thrown. Defaults to false
.
optionalallowVariadicParams
Allow variadic params to be parsed, otherwise an error is thrown. Defaults to false
.
optionalcategories
A mapping of sub-command and option categories for this command only. Global options are automatically defined under the global
category.
optionalcategory
The category this object belongs to. Will be used to group in the parent command or program. Defaults to no category.
optionaldeprecated
Whether the object is deprecated or not. Will display a tag in the help menu. Defaults to false
.
description
A description of what the object is and does. Supports basic markdown for bold, italics, and underline.
optionalhidden
Whether the object should be hidden from the help menu or not. Will still match on the command line. Defaults to false
.
optionaloptions
A mapping of options to their configurations.
optionalparams
A list of param (positional args) configurations.
optionalpath
A unique name in which to match the command on the command line amongst a list of arguments (argv).
optionalusage
Define one or many usage examples to display in the help menu.
A list of aliased paths. Will not show up in the help menu, but will match on the command line.