feat(cli): accept basou portfolio list and redirect --check#174
Merged
Conversation
Polish on the read-only `basou portfolio` listing so the natural agent spellings stop erroring: - `basou portfolio list` now lists (an alias for the bare command) instead of `error: too many arguments`. - `basou portfolio --check` prints a pointer to `basou view --portfolio --check` (where the redundancy/footprint preflight lives) and exits 1, instead of a bare `unknown option '--check'`. It still never runs the preflight, so the scope boundary vs `basou view --check` holds. - Any other action word is rejected with the same pointer. Misuse branches exit 1 (matching commander's own unknown-option exit and the rest of the CLI), not a novel code. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
takashi-matsuyama
force-pushed
the
feat/portfolio-list-alias
branch
from
July 14, 2026 22:36
136fb4e to
6724356
Compare
Merged
takashi-matsuyama
added a commit
that referenced
this pull request
Jul 14, 2026
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.
Why
Follow-up polish on
basou portfolio(#173). The core listing shipped, but two natural agent spellings still errored — ironic for a change whose goal is removing foot-guns:basou portfolio list→error: too many arguments(an agent reaching for alistsub-verb).basou portfolio --check→error: unknown option '--check'(--checkis abasou viewflag; the old memory shorthand reached for it).What
basou portfolio listnow lists — an alias for the bare command. Any other action word is rejected with a pointer.basou portfolio --checkprints a pointer tobasou view --portfolio --check(where the redundancy/footprint preflight lives) and exits 1. It still never runs the preflight — the scope boundary vsbasou view --check(a fixed constraint from feat(cli): add read-onlybasou portfoliolisting command #173's review) holds;--checkis declared only to turn the mistake into a signpost.Verified (local)
Misuse branches exit 1 (matching commander's own unknown-option exit and the 62 other exit-1 sites in the CLI; exit codes are part of the 1.0 compat contract), not a novel code. cli typecheck / biome /
lint:lang/ 996 cli tests green; newrunPortfolioCommanddispatcher tests cover thelistalias, the--checkredirect (exit 1, never reads config or lists), and unknown-action rejection.Review note
The delegated adversarial reviewer was cut off mid-run by a session limit, so this went through a self-review + empirical edge-case verification instead (bare /
list/--json/list --json/--check/bogus/list extra/--check+listprecedence). That surfaced and fixed one real issue: the misuse branches originally used a novelexitCode 2, now normalized to1for consistency with the rest of the CLI and the compat contract.Scope
Additive; no change to the
--jsoncontract or any other command. Bundles with #173 into the next release (v0.35.0).🤖 Generated with Claude Code