Registry / cli / ogier-pflag

ogier-pflag

JSON →
library0.0.1gogounverified

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

go get github.com/ogier/pflag
INSTALL
IMPORT
SIG · OGIER-PFLAG
O
ogier-pflag
cligov0.0.1
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/ogier/pflag

Parse command-line flags with short and long options.

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
ogier-pflag — go get ogier-pflag · libregistry