argparse
« Back to VersTracker
Description:
Argument Parser for Modern C++
Type: Formula  |  Latest Version: 3.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ cli library header-only developer-tools
Install: brew install argparse
About:
argparse is a header-only C++ library that provides a flexible and intuitive API for parsing command-line arguments, inspired by Python's argparse. It supports a wide range of features including subcommands, automatic help generation, and type-safe argument validation. Its modern C++ design simplifies the creation of complex CLI interfaces without external dependencies.
Key Features:
  • Header-only library, no build or installation required
  • Supports subcommands, nested arguments, and automatic help generation
  • Type-safe argument parsing with custom validators
  • Modern C++11/14/17/20 API with intuitive syntax
Use Cases:
  • Building robust command-line interfaces for C++ applications
  • Parsing complex arguments and flags for scientific computing tools
  • Creating CLI utilities with subcommand structures like git
Alternatives:
  • CLI11 – CLI11 is another popular C++11 library for command line parsing, often noted for its robust feature set and performance.
  • Boost.Program_options – A part of the Boost library, it provides extensive configuration capabilities but is heavier and requires linking against Boost.
License: MIT
Bottles available for: all
Version History
Detected Version Rev Change Commit