Skip to content

Releases: alecthomas/kingpin

v2.4.0

16 Nov 03:10
64d23c5
Compare
Choose a tag to compare
Improved error message for missing required flags: now list all missi…

v1.3.4

23 Jan 06:26
Compare
Choose a tag to compare

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

21 Nov 07:06
Compare
Choose a tag to compare

Flags in two or deeper subcommands were not being parsed.

Subcommands and smarter help

17 Sep 01:35
Compare
Choose a tag to compare
v1.3.0

Reintroduce (much better) help and --help.

Fix bug where argument parse errors were not reported

21 Jul 04:47
Compare
Choose a tag to compare
v1.2.3

Actually return argGroup parse errors :\

Error out on excess arguments

09 Jul 01:24
Compare
Choose a tag to compare
v1.2.2

Return an error if too many arguments are passed through.

Bug fix for Enum values

09 Jul 01:23
Compare
Choose a tag to compare
v1.2.1

Fix enum values.

Help improvements + more useful types

08 Jul 02:34
Compare
Choose a tag to compare
  • 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()

27 Jun 04:40
Compare
Choose a tag to compare
  • Fixed a bug (#6) where an invalid default value could prevent the application from starting. Bad.
  • Fixed formatting issue (#5) where very long default values would result in unreadable output.
  • Added OpenFile(flag, perm) for controlling how files are opened.

Stable release (v1.0.0)

19 Jun 00:37
Compare
Choose a tag to compare

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.