Class: FlagNotFoundError
Thrown when input suggests an flag, but no flag with that name was found.
Extends
Constructors
new FlagNotFoundError()
new FlagNotFoundError(
input,corrections,aliasName?):FlagNotFoundError
Parameters
• input: string
• corrections: readonly string[]
• aliasName?: string
Returns
Overrides
ArgumentScannerError.constructor
Defined in
packages/core/src/parameter/scanner.ts:107
Properties
aliasName?
readonlyoptionalaliasName:string
Set if error was caused indirectly by an alias. This indicates that something is wrong with the command configuration itself.
Defined in
packages/core/src/parameter/scanner.ts:106
cause?
optionalcause:unknown
Inherited from
Defined in
node_modules/typescript/lib/lib.es2022.error.d.ts:24
corrections
readonlycorrections: readonlystring[]
Set of proposed suggestions that are similar to the input.
Defined in
packages/core/src/parameter/scanner.ts:101
input
readonlyinput:string
Command line input that triggered this error.
Defined in
packages/core/src/parameter/scanner.ts:97
message
message:
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1077
name
name:
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1076
stack?
optionalstack:string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1078