News for hackers. Stuff that matters.
Re:Go best practices, six years in (2016) by tynorf on Friday March 02, 2018 @04:06PM (#16505689)
I'm fairly certain you can use `--flag` with the standard flag package from stdlib: https://godoc.org/flag (in the section on command line flag syntax).

Though supporting `-flag` does remove the very nice combining of short flags.

Re:Go best practices, six years in (2016) by lobster_johnson on Friday March 02, 2018 @04:14PM (#16505746)
Interesting, I didn't know that. I never liked the flag package, and the downside you mention is a reason not to use it. Kingpin (used by the Prometheus projects) and go-flags are nicer. Lots of Google code uses spf13's pflag, which I'm not a fan of, but it does do GNU flags correctly.