Expand description
Strict moreutils-compat mode entry point.
Mirrors the rusty-sponge/rusty-vipe strict.rs pattern: bypasses clap
entirely (clap can’t produce byte-equal moreutils errors), runs a
hand-rolled argv scan, emits moreutils-style stderr per FR-013 + FR-018.
§STF-003 option A
For any unknown flag, we emit ONLY the first unknown-flag error and exit
non-zero. moreutils’ Perl Getopt::Long iterates per-character; we
accept that as documented divergence (Strict-mode “moreutils-style”
rather than “moreutils-byte-equal” — see FR-013 note).
§Recognized inputs (Strict mode)
| input | behavior |
|---|---|
-- | end-of-options; rest are positional commands |
--strict / --no-strict | consumed by mode resolution upstream; ignored |
--capture | rejected per FR-013/FR-018 (Rusty extension) |
--help / --version | rejected per FR-013 |
completions | rejected per FR-013 |
other -x / --foo | first-error formatter (STF-003 option A) |
| positionals | command strings, spawned via platform shell |
Enums§
- Unknown
Flag - The first unknown flag encountered by the Strict-mode parser.
Functions§
- format_
spawn_ failure - Moreutils byte-equal spawn-failure formatter per FR-009 + HINT-004.
- format_
unknown_ flag - First-error-only formatter for unknown flags per FR-013.
- pre_
scan_ strict_ flag - Pre-clap scan for
--strict/--no-strictflags. Last occurrence wins. - run
- Strict-mode entry point. Bypasses clap entirely.