local arguments
#6143
Replies: 1 comment
-
|
The issue for this is #1704. A big problem with this is that there are a lot of ways of associating arguments like this. For example, your grouping looks different than any other grouping I've previously seen. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Perhaps I missed it, but there doesn't seem to be a way for clap to support local arguments. Conceptually, something like:
So you can have
cmd input_a --as foo input_b input_c --as bar, where the flag--as foois associated with the input most closely preceeding it (i.e. input_a), input_b has no association, and--as baris associated with input_c.perhaps on the backend, clap could parse these input a single
Vec<String, Option<String>for simple parsing from there.Beta Was this translation helpful? Give feedback.
All reactions