pflag
pflag copied to clipboard
Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
It would be great if `pflag` could accept case-insensitive long flag names, perhaps as an option, so that it would treat variations like `--baseUrl`, `--baseURL` and `--baseurl` as one and...
``` java var files = flag.StringSlice("files", "", "") for _, file := range *files { fmt.Println(file) } ``` ``` bash ./p --files a b c -b xxx which prints: a...
This is important for packages (like https://github.com/golang/glog) where the flags are embedded deeply into the code. I already have this supported in kubernetes here that we can borrow/steal: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/util/plog_import.go (I...
I noticed that there seems to be an error in the documentation; maybe you care to merge this fix?