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?
optionalcause:unknown
Inherited from
Defined in
node_modules/typescript/lib/lib.es2022.error.d.ts:24
externalFlagName
readonlyexternalFlagName:string
External name of flag that was parsing this input.
Defined in
packages/core/src/parameter/scanner.ts:603
input
readonlyinput: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
readonlypreviousInput:string
Command line input that was previously encountered by this flag.
Defined in
packages/core/src/parameter/scanner.ts:607
stack?
optionalstack:string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1078