Repository navigation
feat(cli)!: value flags take their value only after =, and -d is removed - #742
Merged
aibex-agent[bot] merged 6 commits intoDec 6, 2026
Merged
Conversation
… pass --dir= in the new diff test
Author
|
@claude /review |
Contributor
|
Claude finished @aibex-agent[bot]'s task in 4m 2s —— View job Review mode: incremental — read 0 prior review thread(s) before reviewing.
AssessmentThe core mechanism is sound and well-tested:
One minor, non-functional nit:
No other correctness, security, or test-coverage issues found in the diff. Review status: complete |
Author
|
Fixed the |
aibex-agent
Bot
deleted the
aibex/t_XcbmECzOScSutEMqfU9u79t9-equals-flags
branch
December 6, 2026 01:56
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Breaking. Every flag that takes a value now takes it only as
--flag=value, and the-dshort alias for--diris removed. Boolean flags (--json,--full,--diffwith no value, …) are unchanged.The space spelling (
--rule no-eval,--dir /path,-d /path) is refused withINVALID_INPUTbefore any command runs. The message gives the=form, for example: "--ruletakes its value after=, as--rule=<value>. Here, write--rule=no-eval." Nothing changes behavior silently.Why
With one spelling, no flag ever consumes the token after it. That means
splitRawArgumentsno longer needs a list of which flags take values, and a flag missing from that list can no longer turn its value into a positional path. The old failure looked like this:check --rule no-evallooked for a file namedno-eval, found none, and exited 0. It also settles what the token after a bare--diffis (#741): a positional path.Changes
src/util/argv.ts: the scanner has no list of flags that take values. Every-x=vtoken records its value, and--still ends options.src/util/value-flags.ts+src/index.ts: the refusal step. It reads thetype: "string"args of the resolved command chain, so a parent command's--diris covered too. It runs after the--help/--versionintercept.-dis removed from 12 commands.telemetry-run.tsreads only--dir=.agent.tsnow uses the shared scanner instead of its own copy.skills/taskless/SKILL.md, both READMEs andreference-corpus.ymluse the=spelling.minor, with a note telling callers what to update.value-flags-equals-only, archived. Delta specs restate every requirement that names a value flag;cligains "Value flags take their value only after =" (7 scenarios). Scenario counts per spec were checked before and after archiving: no scenario was dropped.Upgrade cost
Anything that runs the CLI with the space spelling must switch to
--flag=value. This includes the Taskless service and any CI scripts written by hand. The CI and hook files that theciandhooksrecipes generate use positional paths,--jsonand--diff, so they need no change.Checks
pnpm typecheck,pnpm lint, and the full suite (3500 passed, 11 skipped).