Registry / cli / alecthomas-kingpin

alecthomas-kingpin

JSON →
library2.2.6+incompatiblegogounverified

Package kingpin provides command line interfaces like this:

go get github.com/alecthomas/kingpin
INSTALL
IMPORT
SIG · ALECTHOMAS-KINGPIN
A
alecthomas-kingpin
cligov2.2.6+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kingpin
github.com/alecthomas/kingpin

Define a flag and parse command line arguments

package main import "github.com/alecthomas/kingpin" var ( verbose = kingpin.Flag("verbose", "Verbose mode").Bool() ) func main() { kingpin.Parse() if *verbose { println("verbose mode") } }
Debug
Known issues
breakingVersion 2.2.6+incompatible indicates a major version mismatch; use v2 module path for newer versions.
fix
Use github.com/alecthomas/kingpin/v2 for v2.x releases.
affects: >=2.0.0
Upgrade
Version history
2.2.6+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
Perplexity
1
OpenAI (training)
1
Resources
alecthomas-kingpin — go get alecthomas-kingpin · libregistry