Function parseInto

  • Parses command-line arguments into option values.

    Type Parameters

    • T extends Readonly<Record<string, Option>>

    Parameters

    • options: T

      The option definitions

    • values: { -readonly [key in string | number | symbol]: OptionDataType<T[key]> }

      The options' values to parse into

    • cmdLine: CommandLine = ...

      The command line or arguments

    • flags: ParsingFlags = {}

      The parsing flags

    Returns Promise<ParsingResult>

    The parsing result