Skip to main content

Class: UnexpectedPositionalError

Thrown when too many positional arguments were encountered.

Extends

Constructors

new UnexpectedPositionalError()

new UnexpectedPositionalError(expectedCount, input): UnexpectedPositionalError

Parameters

expectedCount: number

input: string

Returns

UnexpectedPositionalError

Overrides

ArgumentScannerError.constructor

Defined in

packages/core/src/parameter/scanner.ts:282

Properties

cause?

optional cause: unknown

Inherited from

ArgumentScannerError.cause

Defined in

node_modules/typescript/lib/lib.es2022.error.d.ts:24


expectedCount

readonly expectedCount: number

Expected (maximum) count of positional arguments.

Defined in

packages/core/src/parameter/scanner.ts:277


input

readonly input: string

Command line input that triggered this error.

Defined in

packages/core/src/parameter/scanner.ts:281


message

message: string

Inherited from

ArgumentScannerError.message

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string

Inherited from

ArgumentScannerError.name

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1076


stack?

optional stack: string

Inherited from

ArgumentScannerError.stack

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1078