This PR adds -j/--json as accepted no-op flags on the batch command so scripts that pass these flags (consistent with every other codegraph command) no longer get rejected with "unknown option". Because batch always outputs JSON, the flag is intentionally parsed but never consumed.
src/cli/commands/batch.ts: One-line addition to the options array; the option is a declared no-op and is not referenced in validate or execute, which is correct.
tests/integration/batch.test.ts: Two integration smoke tests confirm both the long (--json) and short (-j) forms are accepted and that the output remains valid JSON with the expected fields.
Confidence Score: 5/5
Safe to merge — adds a harmless no-op flag declaration and two matching integration tests with no behavioral changes to existing logic.
The change is a one-line option declaration that is never consumed by validate or execute, perfectly matching the always-JSON contract already documented in the command description. The two new integration tests cover both the long and short flag forms, and the existing 24 tests remain unaffected.
No files require special attention.
Important Files Changed
Filename
Overview
src/cli/commands/batch.ts
Adds -j/--json as an accepted no-op option so scripts passing the flag no longer receive "unknown option" errors; the option is declared but intentionally unused in execute/validate.
tests/integration/batch.test.ts
Adds two smoke tests confirming --json and -j flags are accepted and that the output remains valid JSON with the expected shape.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Test plan
Closes #1561