Registry / cli / droundy-goopt

droundy-goopt

JSON →
library0.0.0-20220217183150-48d6390ad4d1gogounverified

A simple command-line option parsing library for Go applications.

go get github.com/droundy/goopt
INSTALL
IMPORT
SIG · DROUNDY-GOOPT
D
droundy-goopt
cligov0.0.0-20220217183150-48d6390ad4d1
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.

goopt
✓ github.com/droundy/goopt

Parses a command-line flag for a name and prints a greeting.

package main import ( "fmt" "github.com/droundy/goopt" ) func main() { name := goopt.String([]string{"-n", "--name"}, "", "your name") goopt.Parse(nil) fmt.Printf("Hello, %s\n", *name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220217183150-48d6390ad4d1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
36
Resources
droundy-goopt — go get droundy-goopt · libregistry