Ross ROSS = Recommend OSS · open-source software intelligence for agents

alexflint/go-arg

Struct-based argument parsing in Go observed · 2026-08-28

github.com/alexflint/go-arg · homepage · Go · BSD-2-Clause (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
alexflint/go-argmain60

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