ZOptionInput: {
    equal(this, first, second) => boolean;
    isOptionValue(this, arg) => boolean;
    valuesOf(this, args, fromIndex?) => readonly string[];
}

Type declaration

  • equal:function
  • isOptionValue:function
    • Checks whether the given command line argument is suitable to be used as option value.

      This is used by default to find option values.

      Parameters

      • this: void
      • arg: string

        Command line argument to check.

      Returns boolean

      true unless argument starts with - and not equal to - itself.

  • valuesOf:function
    • Extracts command line option values.

      This is used by default to extract option values.

      Parameters

      • this: void
      • args: readonly string[]

        Command line arguments.

      • fromIndex: number = 0

        First argument index to start extracting values at.

      Returns readonly string[]

      An array of command line option values.

Generated using TypeDoc