-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Should .Default(false) be used on all boolean options? #2865
Comments
For the record I should add that I think "Default: true" should be displayed for the few Boolean options that default to true, but "Default" false" is unnecessary and redundant. |
@kevina I agree. I think adding the |
Yeah, I took @jbenet's comment to mean I should just put it in. I'm happy to remove it if is clearer, it is some noise and we can assume that they will be false. Adding Default: true if valid is something that should be done, for sure. |
@whyrusleeping I don't think this issue was ever resolved or properly discussed. I am reopening. I also changed the title to be more direct. |
AFAIK, this has been discussed a lot off-GitHub. The resolution we came to is that, no, |
Cool, i think we're in agreement here that |
@RichardLitt has been adding
.Default(false)
to a lot of Boolean options. To me this seams really unnecessary and adds noise to the help text. I can find very little president for this in the help text for most (unix) command line options.The only discussion I can find on this is in the comments for pull requests #2582 where @whyrusleeping and @jbenet commented on it. However, @jbenet final comment seamed more about if Boolean options should always default to false and less on if "Default: false" should be displayed for each and every Boolean option that defaults to false.
This issue is a request to formally document the policy and the reason behind it.
The text was updated successfully, but these errors were encountered: