tclap
« Back to VersTracker
Description:
Templatized C++ command-line parser library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ library cli command-line header-only
Install: brew install tclap
About:
Tclap is a lightweight, templatized C++ library for parsing command-line arguments. It provides an easy-to-use API for defining flags, arguments, and switches without external dependencies. The library is header-only, making it simple to integrate into any C++ project.
Key Features:
  • Header-only library, no compilation required
  • Type-safe argument parsing using C++ templates
  • Supports advanced features like argument constraints and multi-args
  • Generates standard help and usage output automatically
Use Cases:
  • Adding command-line parsing to C++ applications
  • Building custom developer tools and utilities
  • Prototyping CLI interfaces without heavy dependencies
Alternatives:
  • Boost.Program_options – More comprehensive but requires the heavy Boost library dependency
  • CLI11 – Modern C++11/14/17 interface, similar header-only model with different API style
Version History
Detected Version Rev Change Commit