jessevdk/go-flags
go command line option parser observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5115
- days_rel: n/a
- days_push: 768
- n_releases_24m: 0
Adoption not part of the score
2697 stars · 325 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
go-flags is a Go library for parsing command line options, offering more features than the standard flag package. It uses structs, reflection, and struct tags to define options concisely, supporting short/long names, defaults, choices, slices, maps, callbacks, and automatic help generation.
Use cases
- parse command line flags in a Go CLI
- define CLI options with struct tags instead of manual parsing
- generate formatted help messages for a command line tool
- support combined short options like -aux in a Go app
- parse options into typed fields like ints, slices, and maps
- build nested option groups and subcommands
When to choose
- you need richer option parsing than Go's builtin flag package
- you want declarative option definitions via struct tags
- you need automatic, well-formatted help output
- your CLI uses short flags, long flags, choices, or repeated options
When to avoid
- you only need a couple of simple flags and prefer zero dependencies
- you need subcommand-style CLIs with a framework like cobra
- you are not writing Go
Facets
library · maturity stable
parser cli developer-tools developer-tools programming-languages go cross-platform cli command-line-parsing flags option-parser reflection-based struct-tags help-generation command-line
6 sources
- readme: https://github.com/jessevdk/go-flags · fetched 2026-08-28 · 2fb73d61ab48
- homepage: http://godoc.org/github.com/jessevdk/go-flags · fetched 2026-08-29 · 62db5a7d5be2
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/about · fetched 2026-08-29 · 8b6453863a90
- site_page: https://pkg.go.dev/github.com/jessevdk/go-flags · fetched 2026-08-29 · 1fab0d73d006
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jessevdk/go-flags | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="jessevdk/go-flags")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem