ErrLookup › tj/commander.js

tj/commander.js

node.js command-line interfaces made easy · JavaScript · ★ 28,341

Analyzed at ba6d13ddb4 on 2026-08-03. 28 documented errors.

Code / MessageTypeSeverityTags
Not a number.
validation error commander, argument-parsing, validation, cli
Not a number.
validation error commander, option-parsing, validation, cli
Allowed choices are ${this.argChoices.join(', ')}.
validation error commander, argument-parsing, choices, validation, cli
Command passed to .addCommand() must have a name - specify t
exception error commander, subcommand, addcommand, configuration
only the last argument can be variadic '${previousArgument.n
exception error commander, argument, variadic, configuration
a default value for a required argument is never used: '${ar
exception error commander, argument, default-value, configuration
Unexpected value for event passed to hook : '${event}'. Expe
exception error commander, hook, lifecycle, configuration
Cannot add option '${option.flags}'${this._name && ` to comm
exception error commander, option, conflict, flag, configuration
cannot add command '${newCmd}' as already have command '${ex
exception error commander, subcommand, conflict, alias, configuration
To add an Option object use addOption() instead of option()
exception error commander, option, api-misuse, configuration
passThroughOptions cannot be used for '${this._name}' withou
exception error commander, positional-options, passthrough, configuration
call .storeOptionsAsProperties() before adding options
exception error commander, option-storage, ordering, configuration
call .storeOptionsAsProperties() before setting option value
exception error commander, option-storage, ordering, configuration
first parameter to parse must be array or undefined
exception error commander, parse, argv, api-misuse
unexpected parse option { from: '${parseOptions.from}' }
exception error commander, parse, parse-options, api-misuse
Can not call parse again when storeOptionsAsProperties is tr
exception error commander, parse, option-storage, reparse, configuration
'${executableFile}' does not exist - if '${subcommandName}'
exception critical commander, executable-subcommand, file-system, packaging, cli
'${executableFile}' not executable
exception critical commander, executable-subcommand, permissions, eacces, filesystem
Command alias can't be the same as its name
exception error commander, alias, configuration, validation
cannot add alias '${alias}' to command '${this.name()}' as a
exception error commander, alias, conflict, configuration
outputHelp callback must return a string or a Buffer
exception error help, deprecation, callback, commander
Unexpected value for position to addHelpText. Expecting one
exception error help, validation, commander
Allowed choices are ${this.argChoices.join(', ')}.
validation error validation, choices, argument, commander, user-input
option creation failed due to '${unsupportedFlag}' in option
exception error option, flags, validation, commander
option creation failed due to '${unsupportedFlag}' in option
exception error option, flags, validation, commander
option creation failed due to '${unsupportedFlag}' in option
exception error option, flags, validation, commander
option creation failed due to '${unsupportedFlag}' in option
exception error option, flags, validation, commander
option creation failed due to no flags found in '${flags}'.
exception error option, flags, validation, commander