Constructors

Methods

  • Parameters

    • __namedParameters: Omit<ArgumentParserConfig, "schema"> & { throwOnError?: boolean }

    Returns Promise<
        CommonResult<
            undefined
            | Pick<ParserGlobalState, "parsedArgs" | "parsedOptions">,
        > & { errors?: Record<string, [undefined | ErrorType, string]> },
    >

  • Parameters

    • __namedParameters: CommonArgs<
          {
              command: Command;
              definition: ArgumentParserDefinition;
              state: ParserGlobalState;
          },
      >

    Returns Promise<
        CommonResult<{ name: string; value: unknown }> & {
            abortParsingDefinitions?: boolean;
            errorTypeForwarded?: ErrorType;
        },
    >

  • Parameters

    • __namedParameters: Omit<ArgumentParserConfig, "schema">

    Returns Promise<
        CommonResult<
            undefined
            | Pick<ParserGlobalState, "parsedArgs" | "parsedOptions">,
        > & { errors?: Record<string, [undefined | ErrorType, string]> },
    >

  • Parameters

    • __namedParameters: CommonArgs<
          {
              command: Command;
              defaultState?: ParserGlobalState;
              overload: ArgumentParserOverload;
              parsedOptions: Record<string, unknown>;
              skipIndexes?: number[];
          },
      >

    Returns Promise<
        CommonResult<Pick<ParserGlobalState, "parsedArgs" | "parsedOptions">> & {
            errorTypeForwarded?: ErrorType;
        },
    >

  • Parameters

    • __namedParameters: CommonArgs<
          {
              command: Command;
              definition: ArgumentParserDefinition;
              state: ParserGlobalState;
              type: ArgumentConstructor<unknown>;
              typeIndex: number;
          },
      >

    Returns Promise<
        CommonResult<{ name: string; value: unknown }> & {
            abortParsingDefinitions?: boolean;
        },
    >

MMNEPVFCICPMFPCPTTAAATR