# Function parseCLIArgs

- parseCLIArgs(argv: string[]): CLIOptions

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

  Supports the canonical flags `--help` / `-h`, `--version` / `-v`, `--health`, and the `--timeout <ms>` value flag.

  #### Parameters

  - argv: string[]

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

  #### Returns CLIOptions

  Typed CLI options with boolean flags and optional timeout

  #### Example

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

  #### Example

      const opts = parseCLIArgs(['--timeout', '90000']);
      // opts.timeout === 90000

  - Defined in server/cli.ts:175