Registry / cli / sircmpwn-getopt

sircmpwn-getopt

JSON →
library1.0.0gogounverified

A POSIX-compatible implementation of getopt(3) for Go, providing command-line option parsing.

go get git.sr.ht/~sircmpwn/getopt
INSTALL
IMPORT
SIG · SIRCMPWN-GETOPT
S
sircmpwn-getopt
cligov1.0.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
git.sr.ht/~sircmpwn/getopt

Parse command-line options with a POSIX-compatible getopt.

package main import ( "fmt" "git.sr.ht/~sircmpwn/getopt" "os" ) func main() { opts, args, err := getopt.GetOpt(os.Args[1:], "ab:c") if err != nil { panic(err) } fmt.Println(opts, args) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
sircmpwn-getopt — go get sircmpwn-getopt · libregistry