1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package cmd import ( "os" "log" "flag" ) var die = log.New(os.Stderr, "", 0) func aliasedBoolVar(f * flag.FlagSet, p * bool, value bool, usage string) func(string) { return func(name string) { f.BoolVar(p, name, value, usage) } }