Registry / cli / zmap-zflags

zmap-zflags

JSON →
library1.3.0gogounverified

An extensive command line option parser for Go, similar to the built-in flag package but with more features and reflection-based option specification.

go get github.com/zmap/zflags
INSTALL
IMPORT
SIG · ZMAP-ZFLAGS
Z
zmap-zflags
cligov1.3.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.

flags
github.com/zmap/zflags

Parses command-line flags using struct tags.

package main import ( "fmt" "github.com/zmap/zflags" ) var opts struct { Verbose []bool `short:"v" long:"verbose" description:"Show verbose output"` } func main() { _, err := flags.Parse(&opts) if err != nil { panic(err) } fmt.Printf("Verbose: %v\n", opts.Verbose) }
Debug
Known issues
gotchaThe package uses reflection for flag parsing, which may have performance implications for large structs.
fix
Consider using the standard flag package for simple use cases.
affects: all
Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
OpenAI (training)
1
Resources
zmap-zflags — go get zmap-zflags · libregistry