feat(plugin-renderer): improve positional argument with multiple: true usage display - #432
Conversation
WalkthroughThis pull request implements support for variable-length positional arguments by updating the usage rendering to display multiple positional arguments with the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (3)packages/*/src/**/*.ts📄 CodeRabbit inference engine (CLAUDE.md)
Files:
packages/*/src/**/*.test.ts📄 CodeRabbit inference engine (CLAUDE.md)
Files:
packages/plugin-*/src/**/*.ts📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (3)📚 Learning: 2025-12-05T09:55:04.596ZApplied to files:
📚 Learning: 2025-12-05T09:55:04.596ZApplied to files:
📚 Learning: 2025-12-05T09:55:04.596ZApplied to files:
🧬 Code graph analysis (2)packages/plugin-renderer/src/usage.test.ts (6)
packages/plugin-renderer/src/usage.ts (1)
🔇 Additional comments (3)
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 |
| - `description`: A description of what the option does | ||
| - `default`: Default value if the option is not provided | ||
| - `required`: Set to `true` if the option is required (Note: Positional arguments defined with `type: 'positional'` are implicitly required by the parser). | ||
| - `required`: Set to `true` if the option is required (Note: Positional arguments defined with `type: 'positional'` without `multiple: true` are implicitly required by the parser). |
There was a problem hiding this comment.
I think that this part probably wasn't correctly explaining the behavior before (v0.27 onwards), so I changed it.
kazupon
left a comment
There was a problem hiding this comment.
Good first contribution!
Thank you!
@gunshi/bone
@gunshi/definition
@gunshi/docs
gunshi
@gunshi/plugin
@gunshi/plugin-completion
@gunshi/plugin-dryrun
@gunshi/plugin-global
@gunshi/plugin-i18n
@gunshi/plugin-renderer
@gunshi/resources
@gunshi/shared
commit: |
Description
This PR improves the help text when there are positional arguments with
multiple: true.Linked Issues
close #431
Additional context
If the output format is not what you want, please let me know.
Summary by CodeRabbit
Bug Fixes
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.