Skip to content

Top-level global log flags should be covered by a tested CLI schema or completion contract #3226

Description

@Widthdom

Problem

Top-level global log flags are parsed outside the query command schema/completion path, so they can drift from generated help/completion contracts.

Evidence

  • src/CodeIndex/Cli/ProgramRunner.cs handles global log options such as --log-format, --log-retain-count, and --log-max-size-mb.
  • Existing CLI flag schema tests focus on command-local schema/completion coverage, while these top-level globals are not visibly represented in the same tested contract.

Suggested direction

Add a top-level global flag schema/completion contract, include the log flags, and test that help/completions stay synchronized with the parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions