# tanakh/cmdline

A Command Line Parser

Repository: https://github.com/tanakh/cmdline
Canonical: https://ross.abutalabs.com/products/cmdline
Homepage: http://d.hatena.ne.jp/tanakh/20091028
Language: C
License: BSD-3-Clause
License Family: permissive
Last push: 2020-12-13T10:49:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6159, "days_push": 2089, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1426, forks 384 (observed 2026-08-28T04:04:41.659585+00:00)

## What it is
cmdline is a simple, header-only command line argument parser for C++. It supports typed options, default values, range/oneof constraints, boolean flags, and automatic usage/error message generation.

## Use cases
- parse command line arguments in a C++ program
- generate usage/help text automatically
- validate typed CLI options with constraints
- add flags and options without installing a library
- replace getopt with an easier parser

## When to choose
- you want a zero-dependency, single-header C++ CLI parser
- you need automatic type checking and usage generation
- you want to drop a parser into your project by copying one file

## When to avoid
- you need subcommands or advanced CLI features
- you want an actively developed library with recent updates
- you need locale-aware or complex argument syntax

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, cli, developer-tools
- domain: developer-tools, parsers
- platform: cpp, cross-platform, cli
- tags: header-only, command-line-parser, argument-parsing, cpp, single-header, command-line

## Member repositories
- tanakh/cmdline (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.659585+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-30T04:37:28.896516+00:00, confidence not recorded.
  - readme: https://github.com/tanakh/cmdline (fetched 2026-08-28T04:04:41.659585+00:00, sha 834023f71560)
  - homepage: http://d.hatena.ne.jp/tanakh/20091028 (fetched 2026-08-29T11:49:19.739075+00:00, sha 6b9daec73dcf)
  - site_page: https://tanakh.hatenablog.com/about (fetched 2026-08-29T11:49:19.748307+00:00, sha 8f741ae1a40a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
