# google/argh

Rust derive-based argument parsing optimized for code size

Repository: https://github.com/google/argh
Canonical: https://ross.abutalabs.com/products/argh
Language: Rust
License: BSD-3-Clause
License Family: permissive
Topics: argh, positional-arguments, subcommands, argument-parser, arguments, rust, rust-library
Last push: 2026-05-27T23:18:03+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 8, longevity 100
- inputs: {"age_days": 2407, "days_push": 98, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1950, forks 102 (observed 2026-08-28T04:05:58.157673+00:00)

## What it is
Argh is a Rust derive-based command-line argument parsing library optimized for code size, built around the FromArgs derive macro and from_env function. It supports switches, options, subcommands, and default values while conforming to the Fuchsia commandline tools specification.

## Use cases
- parse command-line arguments in a Rust CLI
- define CLI flags and options with derive macros
- build small binaries with minimal code size overhead
- add subcommands to a Rust command-line tool
- generate --help usage output automatically

## When to choose
- you want a lightweight argument parser with small binary size
- you prefer derive-based declarative CLI definitions in Rust
- you need Fuchsia commandline tools spec conformance

## When to avoid
- you need highly customizable or non-standard CLI behaviors
- you want extensive features like shell completion generation or colored help
- your project is not written in Rust

## Facets
- artifact type: library
- maturity: active
- function: cli, parser, developer-tools
- domain: developer-tools, programming-languages
- platform: rust, cross-platform, cli
- tags: argument-parsing, derive-macros, subcommands, code-size-optimized, fuchsia, command-line

## Member repositories
- google/argh (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:58.157673+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:06:52.107079+00:00, confidence not recorded.
  - readme: https://github.com/google/argh (fetched 2026-08-28T04:05:58.157673+00:00, sha e773ed7606f2)
  - registry_crates: https://crates.io/api/v1/crates/argh (fetched 2026-08-29T10:46:33.543721+00:00, sha e3b3b882e4ca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
