Function parseCommand

  • Parse a command string into command tokens and options values.

    Parameters

    • commandString: string

      The command string to parse.

    • optionsConfig: OptionsConfig

      The options config to use when parsing. Only options that are defined in the config will be included in the option values. Any options that are not defined in the config will be treated as command tokens.

    Returns ParsedCommand

    The parsed command tokens and options values.