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
Flag Groups #259
Comments
I think it would be nice to be able to group flags, but I also wouldn't want to create overhead for, what I'm guessing is, the majority case that doesn't need to group their flags. What might be better is making the library more flexible such that additional properties could be assigned to flags and then custom help templates could be created that organize them. |
@jszwedko a mechanism like the command categories would do nicely. In fact I thought categories were for flags originally having read the docs too quickly.
IMO (2) and (3) are likely to be were most of the complexity lies, particularly if you have overlapping sets of flags that are shared between commands, meaning even lexical ordering of related arguments is problematic. |
👍 I tend to agree now -- I'd be open to a PR that introduced the analogous category functionality to flags that exists for commands. |
#796 adds this functionality for those who want to use it. |
This feature is now |
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. |
This looks like its still in limbo pending more interest? |
This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant. |
What's current status? |
To expand on my comment 9 days ago, this issue is waiting on someone interested in refining the proposal and advocating for it 🙂 You are free to do that, if you are so inclined.
Yes, if you would like to restart the activity there then you are free to do so! |
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. |
It might be nice to be able to have
command.Flags
be a[][]Flag
for the purposes of being able to group flags in the command help output.In addition instead of a straight up
[][]Flag
, a newFlagGroup
struct type may be better, where we can define a name/other fields.WDYT?
The text was updated successfully, but these errors were encountered: