Skip to content

Honor end-of-options for option-like search queries #5208

Description

@Widthdom

Problem

The search command still interprets an option-like query token after the documented -- end-of-options delimiter.

Reproduction

dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll search --json -- --fields

Actual result:

Error [E010_USAGE_ERROR]: --fields requires a value.

Expected

After --, --fields is treated as the literal search query instead of a CLI option. Other option-like query tokens should follow the same rule.

Scope

Preserve the end-of-options boundary before generic bounded-output option parsing, with regression coverage for option-like literal queries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions