Set required(false) by default for all arguments #4203
Replies: 2 comments 2 replies
-
However, outside of the context of Feel free to create an issue. This will be a breaking change. I am close to wrapping up clap 4.0 and if we miss that window, will have to wait until 5.0 if we move forward with this. |
Beta Was this translation helpful? Give feedback.
-
After reading my post again, I realize that my wording is not entirely accurate. I mean: Most of my options (option = |
Beta Was this translation helpful? Give feedback.
-
I am trying to simplify my argument parsing in clap.
I want to do something like this:
However, most of my arguments are not required (and have a default value), but I don't want to write required(false) every time. Is there an easy way to set required(false) as default for all arguments?
Beta Was this translation helpful? Give feedback.
All reactions