-
Notifications
You must be signed in to change notification settings - Fork 1.7k
show only subcommand flags with bash completion #1186
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
Conversation
Is this blocked for some reason? |
@schollz can you add a test case for this? |
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.
(requesting changes for the test case)
Sorry, no I cannot. Feel free to close |
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
Closing this as it has become stale. |
show only subcommand flags with bash completion (#1186)
What type of PR is this?
What this PR does / why we need it:
On subcommands the bash completion for flags shows global flags which cannot be used. This change makes sure that only subcommand flags are shown.
Which issue(s) this PR fixes:
Fixes #1184
Special notes for your reviewer:
None.
Testing
I tested the change with my program, croc to see if the subcommands (
croc send --
) correctly complete the flags for subcommands.Release Notes