yafp
yafp is a non-POSIX cli flag parser with imperative style flag declaration instead of the usual declarative style.
Features:
- Help generation.
- Imperative flag declaration with usage text.
- Supports boolean flags,
falseif not foundtrueif found. - Supports required and optional value flags.
- Values parsed to assigned variable type.
Limitations:
- Only supports short flag style.
- Does not support flag combination, for example,
-fdis not-fand-dand is instead a single flag. - Non-UTF8 arguments are not supported.
Usage
use Parser;
License
MIT