European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Function parseCLIArgs

    • Parse an array of CLI argument strings into a typed CLIOptions object.

      Supports the canonical flags --help / -h, --version / -v, and --health.

      Parameters

      • argv: string[]

        Array of raw argument strings (typically process.argv.slice(2))

      Returns CLIOptions

      Typed CLI options with boolean flags

      const opts = parseCLIArgs(['--health']);
      if (opts.health) showHealth();