-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
flag: better option parser #12251
Comments
The behavior of Go's flag package is intentional. |
@bradfitz it is not about changing |
@techtonik as a counterpoint: in my opinion the |
@techtonik The go standard flag package has made deliberate design choices. Those seem unlikely to change. At any rate, they would only change after a discussion of benefits and costs. It is straightforward to write a different flag parsing package in Go, and to use that in your own programs. In fact, I'm sure it has been done, e.g., http://godoc.org/code.google.com/p/getopt . |
@adg maybe it is just a habit developed because there is no anything else in daily practice to compare with? =) |
There is a problem with command line usability of
go
. From #12197:go get something -h
doesn't work, onlygo get -h something
go get -h
help is unreadable - lacks visual structureThere are more features that could be added to stdlib. Tools:
https://github.com/jawher/mow.cli
https://github.com/codegangsta/cli
The text was updated successfully, but these errors were encountered: