4 ms·
My impression is that nobody bothers with the Go flags package and most people use the POSIX compatible pflag [1] library for argument parsing, usually via the
by programd 6y ago
My impression is that nobody bothers with the Go flags package and most people use the POSIX compatible pflag [1] library for argument parsing, usually via the awsome cobra [2] cli framework.
Or they just use viper [3] for both command line and general configuration handling. No point reinventing the wheel or trying to remember some weird non-standard quirks.
[1] https://github.com/spf13/pflag https://github.com/spf13/pflag
[2] https://github.com/spf13/cobra https://github.com/spf13/cobra
[3] https://github.com/spf13/viper https://github.com/spf13/viper
- akdor1154 6y agoNobody.. except Hashicorp :(
- DangitBobby 6y agoI always wondered who to blame for the single - long arguments in terraform.