Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_values_if #5698

Open
2 tasks done
SuspiciousDuck opened this issue Aug 24, 2024 · 0 comments
Open
2 tasks done

default_values_if #5698

SuspiciousDuck opened this issue Aug 24, 2024 · 0 comments
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

Comments

@SuspiciousDuck
Copy link

SuspiciousDuck commented Aug 24, 2024

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 the String is. This is impossible to implement because default_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 or default_values_ifs implemented.

Alternatives, if applicable

No response

Additional Context

No response

@SuspiciousDuck SuspiciousDuck added the C-enhancement Category: Raise on the bar on expectations label Aug 24, 2024
@epage epage added A-builder Area: Builder API A-parsing Area: Parser's logic and needs it changed somehow. S-waiting-on-design Status: Waiting on user-facing design to be resolved before implementing labels Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants