github.com/alexflint/go-arg

go-arg

Package arg parses command line arguments using the fields from a struct.

70

Decision Signals

Health score 70/100, confidence 80/100.

Review
Maintenance 63
Adoption 62
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/alexflint/go-arg

Package Data

updated May 31, 2026
Latest versionv1.6.1
Imported by1.7K packages
Stars0
Forks0
Last activity6 months ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

31 symbols
SymbolKindSynopsis
Config Type type Config struct{ ... }
Config.EnvPrefix Field EnvPrefix string
Config.Exit Field Exit func(int)
Config.IgnoreDefault Field IgnoreDefault bool
Config.IgnoreEnv Field IgnoreEnv bool
Config.Out Field Out io.Writer
Config.Program Field Program string
Config.StrictSubcommands Field StrictSubcommands bool
Described Type type Described interface{ ... }
Described.Description Method Description func() string
Epilogued Type type Epilogued interface{ ... }
Epilogued.Epilogue Method Epilogue func() string

Similar Packages

Go CLI Frameworks

#1 Cobra

Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.

Go CLI Frameworks 44.0K stars 195.9K imported-by 100% confidence
95

#2 urfave/cli

Simple, fast, and fun package for building command line apps in Go.

Go CLI Frameworks 24.1K stars 23.1K imported-by 65% confidence
94

#3 dasel

Unified querying, transformation, and modification of JSON, TOML, YAML, XML, INI, HCL, KDL and CSV.

Go CLI Frameworks 8.0K stars 0 imported-by 45% confidence
85

#4 kong

Package kong aims to support arbitrarily complex command-line structures with as little developer effort as possible.

Go CLI Frameworks 0 stars 3.1K imported-by 80% confidence
77

#5 flash-flags

Package flashflags provides ultra-fast, zero-dependency, lock-free command-line flag parsing for Go.

Go CLI Frameworks 0 stars 3 imported-by 80% confidence
67