af6389496e4cc9012f98bc1b0a88d62c3f1e71af
argparse
Simple single-file header-only CLI option parsing for C++. No subcommands, grouped commands.
Getting Started
Download the latest argparse.hpp and include it in your project.
Features
- allow (default) / disallow (
Parser::no_unrecognize()) unrecognized options and flags - optional/required (
PosnlBase::required()) positional arguments - flags with
-s,--long-flagformats - options with
--long-opt valformat - positional arguments
--to stop parsing options and flags- modify
argc/argv(disable withParser::no_consume()) - Option Types
intsize_tfloatdoublestd::string
Roadmap
- examples
- Help string output
- support --long-option=value
- have the last positional argument fill a vector with remaining
Description
Languages
C++
89.6%
CMake
7%
Shell
3.4%