@backblaze-labs/b2-mcp
    Preparing search index...

    Function readPortArg

    • Parse a --port CLI argument at a specific index.

      Parameters

      • argv: string[]

        CLI argument vector.

      • index: number

        Argument index to inspect.

      Returns PortArgResult | null

      Parsed port and consumed index, or null when the current argument is not a port flag.

      PortUsageError when --port is missing a value or has an invalid one.