9849273411db43fb7ded714d8fd49663950d5511
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-flag
formats - options with
--long-opt val
format - positional arguments
--
to stop parsing options and flags- modify
argc
/argv
(disable withParser::no_consume()
) - Option Types
int
size_t
float
double
std::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%