Registry / cli / alecthomas-kingpin

alecthomas-kingpin

JSON →
library2.2.6+incompatiblegogounverified

Package kingpin provides command line interfaces like this:

cli
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.

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 footguns
breakingVersion 2.2.6+incompatible indicates a major version mismatch; use v2 module path for newer versions.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
15 hits · last 30 days
gptbot
3
amazonbot
3
claudebot
3
ahrefsbot
1
Resources