Optional
aliasOptional
arrayboolean, interpret option as an array, see array()
Optional
booleanboolean, interpret option as a boolean flag, see boolean()
Optional
choicesvalue or array of values, limit valid option arguments to a predefined set, see choices()
Optional
coercefunction, coerce or transform parsed command line values into another value, see coerce()
Optional
configboolean, interpret option as a path to a JSON config file, see config()
Optional
configfunction, provide a custom config parsing function, see config()
Optional
conflictsstring or object, require certain keys not to be set, see conflicts()
Optional
countboolean, interpret option as a count of boolean flags, see count()
Optional
defaultvalue, set a default value for the option, see default()
Optional
defaultstring, use this description for the default value in help content, see default()
Optional
demandOptional
demandboolean or string, demand the option be given, with optional error message, see demandOption()
Optional
deprecateboolean or string, mark the argument as deprecated, see deprecateOption()
Optional
deprecatedboolean or string, mark the argument as deprecated, see deprecateOption()
Optional
descstring, the option description for help content, see describe()
Optional
describestring, the option description for help content, see describe()
Optional
descriptionstring, the option description for help content, see describe()
Optional
globalboolean, indicate that this key should not be reset when a command is invoked, see global()
Optional
groupstring, when displaying usage instructions place the option under an alternative group heading, see group()
Optional
hiddendon't display option in help output.
Optional
impliesstring or object, require certain keys to be set, see implies()
Optional
nargsnumber, specify how many arguments should be consumed for the option, see nargs()
Optional
normalizeboolean, apply path.normalize() to the option, see normalize()
Optional
numberboolean, interpret option as a number, number()
Optional
requireOptional
requiredOptional
requiresboolean, require the option be specified with a value, see requiresArg()
Optional
skipboolean, skips validation if the option is present, see skipValidation()
Optional
stringboolean, interpret option as a string, see string()
Optional
type
string or array of strings, alias(es) for the canonical option key, see
alias()