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

Option to display None default? #64

Open
nyoma-diamond opened this issue Jan 17, 2025 · 0 comments
Open

Option to display None default? #64

nyoma-diamond opened this issue Jan 17, 2025 · 0 comments

Comments

@nyoma-diamond
Copy link

If it does not conflict with how argparse works, I think it would be useful to have an option that allows explicitly displaying when the developer has specified that an argument defaults to None internally if not provided. This is useful for arguments where the default case shares some, but not all, functionality with another case that may appear the same to the use but actually isn't. E.g., in my project None and 0 have very similar, but non-identical behavior, as None ensures the value is ignored, while 0 specifies to consider it, but treat it as 0, which doesn't do exactly the same thing.

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

No branches or pull requests

1 participant