-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable global flag for all commands/options
#1875
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1875 +/- ##
==========================================
+ Coverage 70.28% 70.29% +0.01%
==========================================
Files 313 313
Lines 35729 35769 +40
==========================================
+ Hits 25111 25144 +33
- Misses 10618 10625 +7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this change anything on how we can use the flags ? i believe global flags only propagate downwards tho.
if we want to have it global, we have to declare the options on the same or higher level than the commands themselves
Yes, we should check those cases. If 2+ subcommands are using the exact same options (may be the case for |
no i think it just increases amount of places where we can use the flags (i.e. childs as you mentioned)
generally people will want to provide this transaction related arguments at or near the end so having it only extend to childs is fine. if we hoist those now they will be shown even for commands that dont make sense. like having for example: i dont think anyone would want to do
|
ah, i just realized make sense then |
commands/options
No description provided.