# sigoden/argc

A Bash CLI framework, also a Bash command runner.

Repository: https://github.com/sigoden/argc
Canonical: https://ross.abutalabs.com/products/argc
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, command-line, argc, bash, command-line-tool, shell, command-line-parser, bashscript, task-runner, cli-framework, cli-generator
Last push: 2026-06-29T11:25:40+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 60, longevity 100
- inputs: {"age_days": 1655, "days_push": 65, "days_rel": 105, "gap_med": 120.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1161, forks 56 (observed 2026-08-28T04:03:49.305352+00:00)

## What it is
Argc is a Bash CLI framework written in Rust that lets you define command-line interfaces via comment annotations in shell scripts, handling argument parsing, validation, usage text, and subcommands. It also doubles as a Bash-based command runner (via Argcfile.sh) and can generate shell autocompletions and man pages.

## Use cases
- build a cli tool in bash without boilerplate argument parsing
- parse flags options and subcommands in a bash script
- generate shell autocompletion for my bash cli
- create a standalone bash script with no runtime dependency
- run project tasks with an argcfile like a make alternative
- generate man pages for a shell script
- validate and bind environment variables in a bash cli

## When to choose
- you want to write full-featured CLIs in Bash with minimal boilerplate
- you need a lightweight make/just-style task runner based on shell scripts
- you want automatic completions and man pages for shell-based tools
- you need cross-platform bash scripting on macOS, Linux, Windows, and BSD

## When to avoid
- you need a CLI framework in a compiled or higher-level language
- your tool requires complex data structures or performance-critical logic beyond shell scripting
- you want a pure-Bash solution with no external binary at all

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, build-tool
- domain: developer-tools
- platform: windows, cross-platform, cli
- tags: bash, argument-parsing, task-runner, shell-scripts, autocompletion, man-page-generation, rust, command-line, automation, linux, macos

## Member repositories
- sigoden/argc (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:49.305352+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-30T06:31:44.337111+00:00, confidence not recorded.
  - readme: https://github.com/sigoden/argc (fetched 2026-08-28T04:03:49.305352+00:00, sha 85ebc87cd178)
  - registry_crates: https://crates.io/api/v1/crates/argc (fetched 2026-08-29T12:36:10.739488+00:00, sha 4d102ed509bb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
