Skip to content

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

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

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

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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