Releases: alecthomas/kingpin
Releases · alecthomas/kingpin
v2.4.0
v1.3.4
Since v1.2.0:
- Support "--" for separating flags from positional arguments.
- Support loading flags from files (ParseWithFileExpansion()). Use @file as an argument.
- Add post-app and post-cmd validation hooks. This allows arbitrary validation to be added.
- A bunch of improvements to help usage and formatting.
- Support arbitrarily nested sub-commands.
Fix parsing of flags in subcommands
Flags in two or deeper subcommands were not being parsed.
Subcommands and smarter help
v1.3.0 Reintroduce (much better) help and --help.
Fix bug where argument parse errors were not reported
v1.2.3 Actually return argGroup parse errors :\
Error out on excess arguments
v1.2.2 Return an error if too many arguments are passed through.
Bug fix for Enum values
v1.2.1 Fix enum values.
Help improvements + more useful types
- Pass any value through to
Strings()
when final argument.
Allows for values that look like flags to be processed. - Allow
--help
to be used with commands. - Support
Hidden()
flags. - Parser for units.Base2Bytes
type. Allows for flags like--ram=512MB
or--ram=1GB
. - Add an
Enum()
value, allowing only one of a set of values
to be selected. eg.Flag(...).Enum("debug", "info", "warning")
.
One major bug fix plus a few minor + added OpenFile()
Stable release (v1.0.0)
First stable release. No breaking API changes in this major version.
- gopkg.in for versioning (import "gopkg.in/alecthomas/kingpin.v1")
- Support cumulative positional arguments.
- Return error rather than panic when there are fatal errors not caught by
the type system. eg. when a default value is invalid.