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
Question: by option().multiple().groupChoice() ? #505
Comments
No, I'm not sure how that would work. Options aren't ordered, so if you called the group option more than once, how would we know which instance of the group each option on the command line belongs to? It sounds like subcommands would work better than groups here; you can repeat subccommands. |
This is what I tought:
Which is the same groupChoice multiple times but with different values. Does it make sense? |
The problem is that options aren't ordered, so trying to parse repeated groups would be ambiguous:
|
Even if you define all sub-options values as unique? i.e. valueAargs1 ≠ valueAargs2 ≠ valueBargs1 (…) ? |
Yes. But if you have two groups and want them both used at once, why bother with |
Can I use multiple() and choiceGroup() in the same option?
If not, what's the best alternative?
thanks
The text was updated successfully, but these errors were encountered: