Skip to main content

Arg

Index

Functions

Flag

  • A property decorator for declaring a command line flag (boolean value).

Number

  • A property decorator for declaring a command line option with a numeric value.

Numbers

  • A property decorator for declaring a command line option with multiple numeric values.

Params

  • Params<T>(...config: MapParamConfig<T>): MethodDecorator
  • A method decorator for declaring command line parameters (positional arguments).


    Type parameters

String

  • A property decorator for declaring a command line option with a string value.

Strings

  • A property decorator for declaring a command line option with multiple string values.

flag

  • A property initializer for declaring a command line flag (boolean value).

number

  • A property initializer for declaring a command line option with a numeric value.


    Type parameters

    • T: number = number

numbers

  • A property initializer for declaring a command line option with multiple numeric values.


    Type parameters

    • T: number[] = number[]

params

  • params<T>(...config: MapParamConfig<T>): MapParamConfig<T>
  • A property initializer for declaring command line parameters (positional arguments).


    Type parameters

string

  • A property initializer for declaring a command line option with a string value.


    Type parameters

    • T: string = string

strings

  • A property initializer for declaring a command line option with multiple string values.


    Type parameters

    • T: string[] = string[]