default_values_if #5698
Labels
A-builder
Area: Builder API
A-parsing
Area: Parser's logic and needs it changed somehow.
C-enhancement
Category: Raise on the bar on expectations
S-waiting-on-design
Status: Waiting on user-facing design to be resolved before implementing
Please complete the following tasks
Clap Version
4.5.16
Describe your use case
I have an argument which takes a tuple. I also have a previous argument which is a
String
. I want to create 2 different defaults, depending on what theString
is. This is impossible to implement becausedefault_value_if
does not accept a list [] for the value.Describe the solution you'd like
I would like to see
default_values_if
and ordefault_values_ifs
implemented.Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: