kingpin icon indicating copy to clipboard operation
kingpin copied to clipboard

CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser

Results 30 kingpin issues
Sort by recently updated
recently updated
newest added

This issue is to track feature implementation for v3. I'm mostly happy with the core functionality in v2, but there are a few rough edges. To that end, v3 will...

enhancement

I am trying to write some unit tests for my kingpin.Application, to test things like help output. To do that, I build the application the same as I would in...

Tried to break this up into logical chunks so that it's easier to review. Happy to squash if you'd prefer to look at it that way.

If flag.parse() and kingpin.parse() exist at the same time, kingpin will override the flag。 ![image](https://user-images.githubusercontent.com/44139321/100823415-245d6400-348f-11eb-9dfc-347b892d7ca6.png)

go version go1.13.5 darwin/amd64 kingpn version v2.2.6 I came across a strange issue where the introduction of a HintAction broke the order of the arguments. I managed to come up...

If I have a flag like ```go app.Flag("store-token", "Store the acquired token in the system keyring"). Default("true").BoolVar(&authConfig.StoreToken) ``` Then currently it renders as ``` --store-token Store the acquired token in...

When using `kingpin.Version("...")`, passing `--version` means `.Required()` arguments do not have to be provided. I have an argument with a `.Default()` that must be an `.ExistingDir()`. The default path does...

It seems like a lot of the API documentation is not visible on go.dev or godoc.org because of the fact that these methods belong to private structs used as mixins...

...according to https://godoc.org/gopkg.in/alecthomas/kingpin.v2#FlagClause.OverrideDefaultFromEnvar.

A potential solution for ignoring unknown flags. This is something we've run into a need for with automated deployments of updates. The basics are that if the parser runs into...