cxxopts
« Back to VersTracker
Description:
Lightweight C++ command-line option parser
Type: Formula  |  Latest Version: 3.3.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ cli parser header-only developer-tools
Install: brew install cxxopts
About:
cxxopts is a lightweight, header-only C++ library for parsing command-line options. It provides a simple, flexible API for defining arguments and automatically generates help messages. Its main value is ease of integration and use without external dependencies.
Key Features:
  • Header-only library, no build required
  • Supports both short (-h) and long (--help) options
  • Automatic type conversion and validation
  • Generates formatted help text automatically
Use Cases:
  • Adding command-line parsing to C++ applications
  • Creating CLI tools with configurable arguments
  • Parsing configuration flags in scientific or data processing software
Alternatives:
  • Boost.Program_options – More feature-rich but requires Boost dependency and is heavier
  • CLI11 – Modern, powerful alternative with similar ease of use and header-only support
License: MIT
Bottles available for: all
Version History
Detected Version Rev Change Commit