Summary
The README says the default NDJSON output of search, symbols, and files can suppress the terminal record with --results-only, but cdidx symbols --results-only rejects the flag as unsupported.
Reproduction
$ dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll symbols --db .cdidx/codeindex.db --json --results-only --lang python --kind import --limit 1
Error [E010_USAGE_ERROR]: --results-only is not supported for symbols.
Observed with locally built cdidx v1.38.0 from current origin/main while validating #4615.
Expected
Either support --results-only for the documented symbols NDJSON stream or narrow the README contract so it does not advertise the flag for symbols. Add a CLI/documentation contract test for the chosen behavior.
Summary
The README says the default NDJSON output of
search,symbols, andfilescan suppress the terminal record with--results-only, butcdidx symbols --results-onlyrejects the flag as unsupported.Reproduction
Observed with locally built cdidx v1.38.0 from current
origin/mainwhile validating #4615.Expected
Either support
--results-onlyfor the documentedsymbolsNDJSON stream or narrow the README contract so it does not advertise the flag forsymbols. Add a CLI/documentation contract test for the chosen behavior.