structopt

Make your application accept command line flags and environment variables by defining a struct. See godoc.