-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use thirdparty GNU style flag packages #42
Comments
Also thirdparty package candidate: https://code.google.com/p/getopt/ |
+1 |
I do always
etc... |
I've played and tested https://github.com/ogier/pflag This is a good drop-in replacement to Go's One notable things that I've reported this issue ogier/pflag#16 but I don't think there's an easy fix for the problem. Moving on to test the other packages. |
Keeping in the spirit of the project, we won't be using third party services for any of the files at this point. |
The
flag
package in golang doesn't support combination of short flags.e.g. in GNU style,
-help
means-h -e -l -p
, and-n1
means-n=1
.But in Go
-help
means--help
, and-n1
means--n1
. Without a proper GNU style flag parser, there's no easy way to support things liketail -n10
.Here's a short list of packages I googled that do GNU style flag parsing:
I'll be happy to provide some PR if any of the packages are accepted as replacement.
The text was updated successfully, but these errors were encountered: