OptionalaliasOptionalarrayboolean, interpret option as an array, see array()
Optionalbooleanboolean, interpret option as a boolean flag, see boolean()
Optionalchoicesvalue or array of values, limit valid option arguments to a predefined set, see choices()
Optionalcoercefunction, coerce or transform parsed command line values into another value, see coerce()
Optionalconfigboolean, interpret option as a path to a JSON config file, see config()
Optionalconfigfunction, provide a custom config parsing function, see config()
Optionalconflictsstring or object, require certain keys not to be set, see conflicts()
Optionalcountboolean, interpret option as a count of boolean flags, see count()
Optionaldefaultvalue, set a default value for the option, see default()
Optionaldefaultstring, use this description for the default value in help content, see default()
OptionaldemandOptionaldemandboolean or string, demand the option be given, with optional error message, see demandOption()
Optionaldeprecateboolean or string, mark the argument as deprecated, see deprecateOption()
Optionaldeprecatedboolean or string, mark the argument as deprecated, see deprecateOption()
Optionaldescstring, the option description for help content, see describe()
Optionaldescribestring, the option description for help content, see describe()
Optionaldescriptionstring, the option description for help content, see describe()
Optionalglobalboolean, indicate that this key should not be reset when a command is invoked, see global()
Optionalgroupstring, when displaying usage instructions place the option under an alternative group heading, see group()
Optionalhiddendon't display option in help output.
Optionalimpliesstring or object, require certain keys to be set, see implies()
Optionalnargsnumber, specify how many arguments should be consumed for the option, see nargs()
Optionalnormalizeboolean, apply path.normalize() to the option, see normalize()
Optionalnumberboolean, interpret option as a number, number()
OptionalrequireOptionalrequiredOptionalrequiresboolean, require the option be specified with a value, see requiresArg()
Optionalskipboolean, skips validation if the option is present, see skipValidation()
Optionalstringboolean, interpret option as a string, see string()
Optionaltype
string or array of strings, alias(es) for the canonical option key, see
alias()