alecthomas / kingpin

CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser
MIT License
3.5k stars 273 forks source link

Support encoding.Text(Unm|M)arshaler #310

Closed kyoh86 closed 4 years ago

kyoh86 commented 4 years ago

I'm fed up with implementing "MarhsalXXX", "Stringer", etc, etc... kingpin requires "Value" interface to parse string even though there's cool interface "encoding.TextUnmarshaler".

alecthomas commented 4 years ago

BTW, the Value interface is adopted from the stdlib's flag package, so it's not something specific to Kingpin :)