Registry / cli / flags
library0.1.3gogounverified

A lightweight Go library for parsing command-line flags with support for environment variables and default values.

go get gomodules.xyz/flags
INSTALL
IMPORT
SIG · FLAGS
F
flags
cligov0.1.3
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
gomodules.xyz/flags

Define and parse a string flag with a default value.

package main import ( "fmt" "gomodules.xyz/flags" ) func main() { var name string flags.StringVar(&name, "name", "World", "Name to greet") flags.Parse() fmt.Printf("Hello, %s!\n", name) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Resources
flags — go get flags · libregistry