Add short options, -h/--help support, and command help text#515
Conversation
rporres
commented
Jun 17, 2026
- Add HelpGroup (click.Group subclass) to utils.py that propagates -h/--help context settings to every registered subcommand
- Add short options (-l, -n, -v, -N, -c, -u, -d, -t, -s, -H, -e, -r) across all CLI commands
- Switch --dry-run from flag-pair (--dry-run/--no-dry-run) to is_flag; update configure_operator.yaml accordingly
- Add docstrings to enclave, reconcile, operator-versions, and mgmt-cluster-version commands
- Add HelpGroup (click.Group subclass) to utils.py that propagates -h/--help context settings to every registered subcommand - Add short options (-l, -n, -v, -N, -c, -u, -d, -t, -s, -H, -e, -r) across all CLI commands - Switch --dry-run from flag-pair (--dry-run/--no-dry-run) to is_flag; update configure_operator.yaml accordingly - Add docstrings to enclave, reconcile, operator-versions, and mgmt-cluster-version commands Signed-off-by: Rafa Porres Molina <rporresm@redhat.com> Assisted-by: Claude Code <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 5 minutes and 14 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai please review |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Get PR details
gh pr view 515 --repo rh-ecosystem-edge/enclave --json title,body,files,additions,deletions,changedFiles
echo "---DIFF---"
gh pr diff 515 --repo rh-ecosystem-edge/enclaveLength of output: 11092 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Check full content of main cli.py
fd -e py cli.py --exec cat {}Length of output: 17886
PR Review: Add short options,
|
| Item | Status |
|---|---|
HelpGroup.__init__ uses setdefault — won't clobber explicit context_settings |
✅ |
-H (uppercase) for --hostname correctly avoids -h collision |
✅ |
-v reuse across different subcommands (operator-versions, mgmt-cluster-version) — no conflict |
✅ |
Trailing \ removed from configure_operator.yaml for-loop line — shell continuation correct |
✅ |
| Docstrings are meaningful and actionable | ✅ |
HelpGroup.group() override present for future nested groups |
✅ |