-
clap provides
Please note the "!" before the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Can you explain a bit more on what exactly you are trying to achieve with Would you say that |
Beta Was this translation helpful? Give feedback.
-
I would like to have the following behavior: |
Beta Was this translation helpful? Give feedback.
-
You can do |
Beta Was this translation helpful? Give feedback.
-
Oh thanks. That would solve one of my issues. But what about the following usecase:
As an example: |
Beta Was this translation helpful? Give feedback.
-
You can put Please go through the examples and documentation. Almost every argument relationship is supported. |
Beta Was this translation helpful? Give feedback.
You can do
requires("bar")
onfoo
with https://docs.rs/clap/3.0.0-beta.2/clap/struct.Arg.html#method.requires