Class CommandLineArgumentsMap

Class representing a map of command line arguments

Hierarchy

  • CommandLineArgumentsMap

Constructors

Properties

Methods

Constructors

  • Creates an instance of CommandLineArgumentsMap.

    Parameters

    • Optional commandLineArguments: string[] = process.argv

      Array of command line arguments

    Returns CommandLineArgumentsMap

Properties

argumentsMap: Map<string, string>

Map of arguments name and values

Methods

  • Parameters

    • callback: ((value: string, key: string) => void)
        • (value: string, key: string): void
        • Parameters

          • value: string
          • key: string

          Returns void

    Returns void

  • Gets the value of the specified argument

    Returns

    • argument value or undefined

    Parameters

    • arg: string

      argument name

    Returns undefined | string

Generated using TypeDoc