
getopt
This project has been moved to https://github.com/pborman/getopt. It can be fetched with the go command:
go get github.com/pborman/getopt
The getopt package provides BSD and POSIX compatible getopt and getopt_long functions. It is as easy to use as the standard flag package but also allow special processing of each option as they are parsed.
Parsing is extremely close to BSD and getopt_long with the POSIXLY_CORRECT option.
While there are several other option parsing packages available, this package was written to be able to support the parsing of the ssh command line, as well as being very close to traditional command line parsing in UNIX. Also, it was fun to write.
Project Information
The project was created on Feb 12, 2013.
- License: New BSD License
- 2 stars
- hg-based source control