alexflint/go-arg
Struct-based argument parsing in Go observed · 2026-08-28
Health v2 · maintenance only
60/100
- Activity 59
- Release rhythm 38
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 164
- age_days: 3959
- days_rel: 253
- days_push: 249
- n_releases_24m: 2
Adoption not part of the score
2275 stars · 114 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
go-arg is a Go library for parsing command line arguments by declaring them as struct fields with tags. It supports required and positional arguments, environment variables, subcommands, and automatic usage/help generation.
Use cases
- parse command line flags into a Go struct
- define CLI arguments with struct tags
- read configuration from environment variables and flags
- generate usage and help text automatically
- handle positional arguments in a Go CLI
- build subcommands for a Go command-line tool
When to choose
- you want declarative, struct-based flag parsing in Go with minimal boilerplate
- you need automatic help/usage generation and validation of required args
- you want flags backed by environment variables
When to avoid
- you need advanced features like shell completion or complex grammar offered by cobra/urfave-cli
- you are not writing Go
- you need runtime-defined dynamic arguments rather than compile-time structs
Facets
library · maturity stable
cli developer-tools developer-tools go cross-platform argument-parsing struct-based cli-flags environment-variables command-line
4 sources
- readme: https://github.com/alexflint/go-arg · fetched 2026-08-28 · 4f61bfd16295
- homepage: https://pkg.go.dev/github.com/alexflint/go-arg · fetched 2026-08-29 · 3f96815bd4eb
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| alexflint/go-arg | main | 60 |
For agents
markdown · JSON · MCP: product_card(name="alexflint/go-arg")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem