Skip to content

fix(cli): support pre-command ultra compact short flag#2580

Open
YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2369-ultra-compact-short
Open

fix(cli): support pre-command ultra compact short flag#2580
YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2369-ultra-compact-short

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the documented -u shorthand for ultra-compact mode before the subcommand
  • keep -u non-global so git flags like git push -u still pass through
  • keep parse errors for unknown leading flags instead of falling back to raw external execution

Fixes #2369

Verification

  • cargo +1.93.0 fmt --check
  • git diff --check
  • cargo +1.93.0 test ultra_compact -- --nocapture
  • cargo +1.93.0 test fallback -- --nocapture
  • cargo +1.93.0 test git_push_u -- --nocapture
  • RTK_TELEMETRY_DISABLED=1 ./target/debug/rtk -u git status --short
  • RTK_TELEMETRY_DISABLED=1 ./target/debug/rtk -z grep master
  • RTK_TELEMETRY_DISABLED=1 ./target/debug/rtk --help | rg -n -- "ultra|-u|Options"
  • cargo +1.93.0 clippy --all-targets
  • cargo +1.93.0 test --all -- --skip small_grep_not_worse_than_plain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documented -u (--ultra-compact) shorthand is not implemented — unknown global flags exec-fail with ENOENT / exit 127 instead of a parse error

1 participant