You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a count flag, the default value setting is not supported -- FlagSet.CountVarP() or FlagSet.CountVar() only takes name and usage as parameters. Weirdly, it is noted in the comment that default value is allowed.
IMHO, the only way to preserve a backard compatibility would be to extend these methods with some ...Option parameter. One such option could support adding a default value.
When setting a count flag, the default value setting is not supported --
FlagSet.CountVarP()
orFlagSet.CountVar()
only takesname
andusage
as parameters. Weirdly, it is noted in the comment that default value is allowed.pflag/count.go
Lines 47 to 58 in d5e0c06
The text was updated successfully, but these errors were encountered: