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

Add SetToDefault bool for presenting whether a flag is set to the default or not #366

Closed
wants to merge 1 commit into from

Conversation

sergenyalcin
Copy link

Fix: #365

This PR adds a new API field: SetToDefault. This new field will present whether a flag is set to the default or not.

@alecthomas
Copy link
Owner

I appreciate the contribution, but I'd prefer a more general approach of being able to determine the "source" of the value. For example, if coming from an environment variable, default, configuration file, and so on.

@sergenyalcin
Copy link
Author

I'd prefer a more general approach of being able to determine the "source" of the value.

Makes sense. I would be happy to implement this. Let me update the PR.

@alecthomas
Copy link
Owner

Any luck?

@alecthomas alecthomas closed this Jul 5, 2024
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.

Ambiguity in understanding whether Value.Set is set from default or explicit
2 participants