Expand description
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,
false
by default andtrue
if set. - 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,
-fd
is not-f
and-d
and is instead a single flag. - Non-UTF8 arguments are not supported
Modules§
- errors
- Defines errors encountered when parsing.
Structs§
- Parser
- The arguments parser.