Registry / cli / alecthomas-kong

alecthomas-kong

JSON →
library1.15.0gogounverified

A command-line parser for Go that supports arbitrarily complex command-line structures with minimal effort.

go get github.com/alecthomas/kong
INSTALL
IMPORT
SIG · ALECTHOMAS-KONG
A
alecthomas-kong
cligov1.15.0
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.

kong
github.com/alecthomas/kong

Parse command-line arguments with a struct

package main import ( "fmt" "github.com/alecthomas/kong" ) var CLI struct { Name string `arg:"" name:"name" help:"Your name."` } func main() { kong.Parse(&CLI) fmt.Printf("Hello, %s!\n", CLI.Name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.15.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
Perplexity
1
OpenAI (training)
1
Resources
alecthomas-kong — go get alecthomas-kong · libregistry