Skip to content

Easy Go Option Parsing

Choose a tag to compare

@pborman pborman released this 09 Apr 19:08
· 21 commits to master since this release

This release adds a new type, options.Help to support displaying help. Normal usage is:

var opts = struct {
	Help    options.Help  `getopt:"--help  display help"`
	...
}

With this, if --help is provided on the command line the command's usage information will be display on standard output and the command will exit with a status of 0.