The gnuflag repository holds a fork of the Go standard library flag package that supports GNU-compatible flag syntax.
In particular, it supports --longflag
and -l
single-character flag syntax.
The API is compatible with the standard flag package API.
Full documentation can be found here: https://godoc.org/github.com/rogpeppe/gnuflag/flag.