Repository navigation
fix(cli): describe universal Mach-O slice selection without a single-dash flag - #14912
Merged
Merged
Conversation
…dash flag Four --architecture options carried their own copy of the slice help, in two variants, and each said "as lipo -thin does". CLI help must not show a multi-letter single-dash spelling, because -abc parses as stacked one-letter flags, so tests/boundary/cli/cliOptionAliases.test.ts fails on main for inspect-dwarf-units, inspect-go-binary, inspect-native-initializers and inspect-rust-binary. The commands share one description, UNIVERSAL_SLICE_ARCHITECTURE_HELP, which names lipo without the flag spelling. inspect-dwarf-units now states the same-family subtype rule the other three already stated; its selection uses the same selectMachoTarget rule.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
19 of 29 tasks
Contributor
[Low impact] The PR appears safe to merge; no blocking issues remain. SummaryThe PR replaces four duplicated CLI help strings with
Reviews (3) · Last reviewed commit: "docs(cli): name the slice selection owne..." · Reviewed by Greptile |
This was referenced Nov 27, 2026
5 of 29 tasks
vincentkoc
added a commit
that referenced
this pull request
Nov 27, 2026
…pgp-633-20261127 * commit '3097263763611eb0c32c502d5a222060cf02f468': fix(cli): describe universal Mach-O slice selection without a single-dash flag (#14912) fix(iso9660): read Joliet trees whose .. records name their own directory (#14817) feat(gpu)!: add per-call object, work, report, metadata, structure, and parser budgets to inspect_gpu_code_objects (#14882) fix(macho)!: select arm64e.x1 slices of universal Mach-O files by exact subtype (#14881) refactor(views): share bounded parent and report limitations (#14902) refactor(desktop): share XML parent pointers in task drafts (#14905) feat(ghidra): define function-pointer members and typedefs (#14889) refactor(setup): share publication destination checks (#14904) perf(ci): skip unused test runtime uploads (#14903) fix(nuget): preserve explicitly spaced publisher metadata (#14906) fix(artifacts): keep uImage coverage unknown when bytes follow the declared payload (#14896) fix(artifacts): report incomplete Android sparse coverage (#14883) fix(tar): require both end-of-archive blocks for complete coverage (#14884) refactor(views): centralize indexed row paging (#14878) refactor(views): reuse optional filters in report projections (#14877)
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.
Summary
mainfailstests/boundary/cli/cliOptionAliases.test.ts("register only single-character short flags"). The--architecturehelp of four commands says "as lipo -thin does". CLI help must never show a multi-letter single-dash spelling, because the CLI parses-abcas stacked one-letter flags. The test was skipped by CI selection on the #14881 merge, so it shows up on later PRs whose selection includes the CLI boundary shard. For example, #14895 fails "Test shard (6/12)" and "Portable tests" on its merge withmain.No issue is linked. This is a red
maintest introduced by #14881's help text.Problem and expected behavior
rea inspect-dwarf-units --help,inspect-go-binary --help,inspect-native-initializers --helpandinspect-rust-binary --helpeach print-thin.-flagspelling.Change and scope
The four options each carried their own copy of the slice help, in two variants. inspect-dwarf-units omitted the same-family subtype rule that its selection,
selectMachoTarget, applies like the others.They now share one description,
UNIVERSAL_SLICE_ARCHITECTURE_HELPinsrc/cli/universalSliceOption.ts. It names lipo without the flag spelling: "the same match lipo uses when it thins a file". No behavior change beyond help text.Not changed: the MCP schema description in
src/domain/apple/machoTargetSelection.tsand the guides, which quotelipo -thinin code spans. Neither is CLI help, and the test does not cover them.Contract and boundary impact
src/cli/universalSliceOption.ts. It replaces four duplicated strings inbinaryDiagnosticsCommands.ts,goCommands.tsandrustCommands.ts.--helptext for four commands only. MCP is unchanged.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
cliOptionAliases.test.tsis the regression.origin/main(2e59f08), withbuild:cachedrun first,npm run test:focused -- tests/boundary/cli/cliOptionAliases.test.tsfails. It reportsinspect-dwarf-units help: -thin,inspect-go-binary help: -thin,inspect-native-initializers help: -thinandinspect-rust-binary help: -thin. With this change it passes.--architecturenow reads "Slice to read from a universal Mach-O, by CPU family; arm64e and arm64e.x1 read only a slice of that subtype, the same match lipo uses when it thins a file; when several slices share a family, arm64 (arm64 or arm64v8) or x86_64 names the subtype, and a value matching several slices is refused; required for universal files".For evidence-bearing changes: not applicable.
Validation performed
npm run build:cached: passed.npm run test:focused -- tests/boundary/cli/cliOptionAliases.test.ts: 4 passed. The same command on unmodifiedmainfails with the four-thinentries.npm run docs:check: passed.oxlinton the four touched files: no new findings. It still reports the existingmax-lineswarnings onbinaryDiagnosticsCommands.ts.Compatibility, safety, and release
Author readiness
Human owner:
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.