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

Open
wants to merge 1 commit into
base: master
Choose a base branch
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.

…ault or not

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
@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?

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