Skip to content

Fix some help and GetRequiredValue issues #2601

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jonsequitur
Copy link
Contributor

This fixes the following issues:

The approach I took to fix #2573 makes Argument<bool> and Option<bool> have an implicit DefaultValueFactory. This change drove changes to the HelpBuilder so I also fixed #2582 while I was in there.

It's not obvious to me that this is the right fix, so I thought that the PR would help clarify the discussion.

For example, should other types than bool have this behavior of an implicit default value?

@jonsequitur jonsequitur marked this pull request as draft June 27, 2025 17:53
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.

When displaying default values do not display [] when value is null GetRequiredValue throws for implicit values
2 participants