A Composable Command Line Parser
summary
A command-line parser library is extracted from Catch, released as Clara, and rewritten for C++11 to make small parsers composable. Each parser returns remaining tokens and an error status; parsers combine with a pipe operator (a monadic bind style) to form a single parser that also emits usage strings. Multiple components expose partial parsers, composition produces predictable CLI behavior, and the resulting system is actively used in Catch2 and on GitHub.
AI-written summary · about
related talks
06mCommand Line Parser Library
46mBinary Parsing - C++23 Style!
42mBinary Parsing, C++23 Style
42mGenerating Parsers in C++ with Maphoon - Part 1 of 2
07mCan I has grammar?
01h 02mFunctional Composable Operations with Unix-Style Pipes in C++
01h 00mTeaching old compilers new tricks
01h 03mC++ Reflection: Back on Track
