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

fix(assert): Report invalid defaults in debug asserts #3423

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

epage
Copy link
Member

@epage epage commented Feb 8, 2022

This can help people catch them via App::debug_assert rather than
waiting until the default is used and validated.

Fixes #3202

This can help people catch them via `App::debug_assert` rather than
waiting until the default is used and validated.

Fixes clap-rs#3202
@epage epage merged commit 31bd34c into clap-rs:master Feb 8, 2022
@epage epage deleted the assert branch February 8, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

default_value may not be included in possible_values and only checked in a runtime
1 participant