Class: UnexpectedFlagError
Thrown when single-valued flag encounters more than one value.
Extends
Constructors
new UnexpectedFlagError()
new UnexpectedFlagError(
externalFlagName
,previousInput
,input
):UnexpectedFlagError
Parameters
• externalFlagName: ExternalFlagName
• previousInput: string
• input: string
Returns
Overrides
ArgumentScannerError
.constructor
Defined in
packages/core/src/parameter/scanner.ts:612
Properties
cause?
optional
cause:unknown
Inherited from
Defined in
node_modules/typescript/lib/lib.es2022.error.d.ts:24
externalFlagName
readonly
externalFlagName:string
External name of flag that was parsing this input.
Defined in
packages/core/src/parameter/scanner.ts:603
input
readonly
input:string
Command line input that triggered this error.
Defined in
packages/core/src/parameter/scanner.ts:611
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
previousInput
readonly
previousInput:string
Command line input that was previously encountered by this flag.
Defined in
packages/core/src/parameter/scanner.ts:607
stack?
optional
stack:string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1078