ff icon indicating copy to clipboard operation
ff copied to clipboard

Support default for flag.Value implementations registered via AddStruct

Open GeorgeMac opened this issue 1 year ago • 1 comments

I noticed when I had a field which implemented flag.Value and I registered it using AddStruct that the default wasn't being respected. This adds support this by wrapping the flag.Value in another implementation which tracks if Set is called and returns the default if not.

GeorgeMac avatar Jun 14 '24 11:06 GeorgeMac

PTAL at #143

peterbourgon avatar Mar 15 '25 00:03 peterbourgon

Should be fixed by #148

peterbourgon avatar Jul 17 '25 18:07 peterbourgon

Thank you!

GeorgeMac avatar Jul 18 '25 11:07 GeorgeMac