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?
readonly
optional
aliasName: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?
optional
cause:unknown
Inherited from
Defined in
node_modules/typescript/lib/lib.es2022.error.d.ts:24
corrections
readonly
corrections: readonlystring
[]
Set of proposed suggestions that are similar to the input.
Defined in
packages/core/src/parameter/scanner.ts:101
input
readonly
input: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?
optional
stack:string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1078