alecthomas / kingpin

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

Simplify code #290

Closed muesli closed 5 years ago

muesli commented 5 years ago

Replace for-range loop with a simple append call.

alecthomas commented 5 years ago

Thanks!

muesli commented 5 years ago

I just realized we can simplify this further...

muesli commented 5 years ago

See: https://github.com/alecthomas/kingpin/pull/292