p-ranav/argparse
Argument Parser for Modern C++ observed · 2026-08-28
Health v2 · maintenance only
24/100
- Activity 3
- 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-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2713
- days_rel: 585
- days_push: 584
- n_releases_24m: 1
Adoption not part of the score
3532 stars · 313 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A single-header, C++17 argument parsing library for modern C++ with a Python argparse-like API. It supports positional and optional arguments, subcommands, mutually exclusive groups, and automatic help generation.
Use cases
- parse command-line arguments in a C++ program
- add subcommands to a C++ CLI tool
- generate help messages for a C++ application
- handle optional and positional arguments in C++
- build a CLI tool with argument validation in C++
When to choose
- you need a lightweight, header-only argument parser for C++17
- you want Python argparse-style ergonomics in C++
- you need subcommands and mutually exclusive argument groups
- you want zero build dependencies and easy CMake integration
When to avoid
- your project targets C++ standards older than C++17
- you need a full CLI framework with colors, spinners, or interactive prompts
- you are building a GUI application without command-line interfaces
Facets
library · maturity stable
parser cli developer-tools developer-tools cpp cross-platform cli header-only cpp17 argument-parsing mit-license subcommands command-line cpp
1 source
- readme: https://github.com/p-ranav/argparse · fetched 2026-08-28 · fd9c834d5de9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| p-ranav/argparse | main | 24 |
For agents
markdown · JSON · MCP: product_card(name="p-ranav/argparse")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem