A Go command line and flag parser
Kingpin is a fluent-style, type-safe command-line parser. It supports flags,
nested commands, and positional arguments.
Features:
+ Help output that isn't as ugly as sin.
+ Fully customisable help, via Go templates.
+ Parsed, type-safe flags (kingpin.Flag("f", "help").Int())
+ Parsed, type-safe positional arguments (kingpin.Arg("a", "help").Int()).
+ Parsed, type-safe, arbitrarily deep commands (kingpin.Command("c", "help")).
+ Support for required flags and required positional arguments (kingpin.Flag("f", "").Required().Int()).
+ Support for arbitrarily nested default commands (command.Default()).
+ Callbacks per command, flag and argument (kingpin.Command("c", "").Action(myAction)).
+ POSIX-style short flag combining (-a -b -> -ab).
+ Short-flag+parameter combining (-a parm -> -aparm).
+ Read command-line from files (@).
+ Automatically generate man pages (--help-man).
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:go/golang-gopkgin-alecthomas-kingpin.v2 && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_service | 0000000647 647 Bytes | |
_servicedata | 0000000239 239 Bytes | |
golang-gopkgin-alecthomas-kingpin.v2.changes | 0000001162 1.13 KB | |
golang-gopkgin-alecthomas-kingpin.v2.spec | 0000002940 2.87 KB | |
kingpin-2.2.6.tar.xz | 0000037528 36.6 KB | |
rpmlintrc | 0000000451 451 Bytes |
Comments 0