Files
reverse-engineering-anything/src/cli/universalSliceOption.ts
T
morluto 3097263763 fix(cli): describe universal Mach-O slice selection without a single-dash flag (#14912)
* fix(cli): describe universal Mach-O slice selection without a single-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.

* docs(cli): name the slice selection owner in the shared help comment
2026-11-27 11:39:34 -05:00

12 lines
744 B
TypeScript

/**
* Help for the `--architecture` option of commands that read one slice of a
* universal Mach-O through `machoSliceSelection.ts`. One description, so every
* command states the same selection rule.
*
* It names lipo without a single-dash spelling: help never shows a
* multi-letter `-flag`, because the CLI parses `-abc` as stacked one-letter
* flags.
*/
export const UNIVERSAL_SLICE_ARCHITECTURE_HELP =
"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";