Registry / cli / spf13-pflag

spf13-pflag

JSON →
library1.0.10gogounverified

Package pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.

go get github.com/spf13/pflag
INSTALL
IMPORT
SIG · SPF13-PFLAG
S
spf13-pflag
cligov1.0.10
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.

pflag
github.com/spf13/pflag

Define a command-line flag with short and long forms.

package main import ( "fmt" "github.com/spf13/pflag" ) func main() { var name string pflag.StringVarP(&name, "name", "n", "world", "your name") pflag.Parse() fmt.Printf("Hello, %s!\n", name) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
spf13-pflag — go get spf13-pflag · libregistry