Registry / cli / pborman-getopt-v2

pborman-getopt-v2

JSON →
library2.1.0gogounverified

A traditional getopt library for Go, supporting short and long options, mandatory options, and mutually exclusive groups.

go get github.com/pborman/getopt/v2
INSTALL
IMPORT
SIG · PBORMAN-GETOPT-V2
P
pborman-getopt-v2
cligov2.1.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.

getopt
github.com/pborman/getopt/v2

Defines a --name flag, parses command-line arguments, and prints a greeting.

package main import ( "fmt" "github.com/pborman/getopt/v2" ) func main() { name := getopt.StringLong("name", 'n', "", "your name") getopt.Parse() fmt.Printf("Hello, %s\n", *name) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Amazon
1
Resources
pborman-getopt-v2 — go get pborman-getopt-v2 · libregistry