Chances are that if you’re writing Go code for a while now, your needs for command line arguments have grown beyond just what the standard library flag package is able to provide.
A quick list
To quickly list a few packages:
namsral/flag - add environment variable parsing,
spf13/pflag - use posix/gnu-style --flags,
urfave/cli - adds a default action and command actions, env aliases,…
spf13/cobra - an interface for cli commands like git and go tools,
spf13/viper - a larger...
Published on April 28, 2020 05:31