Replies: 1 comment 1 reply
-
No, positionals are strictly ordered. Relying on parser success to try other options works in very limited cases, can be confusing, and would generate bad error messages. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The dig command can be like this, query-type and domain can be in any order. Does clap support arbitrary ordering of
positional arguments
?The dig command supports:
I want clap to try to parse the QueryType first, then the QueryClass, and finally the Domain.
Can be in any order, but only parsed once.
Beta Was this translation helpful? Give feedback.
All reactions