A GNU-/POSIX-compiant CLI argument parsing and validation library.
Example: -a -b -c
/ -abc
Usage: Simple boolean flags
Example: -A/tmp/file.png
/ -A /tmp/file.png
Usage: Simple parameters with a value. If no space is provided the argument must be capitalized.
Example: --version
Usage: Same as Short option flags, but taken from GNU
Example: --output=/tmp/file.png
/ --output /tmp/file.png
Usage: Same as Short options with arguments, but taken from GNU. Can be separated with either space or an equal sign (=).
Any arguments subsequent to options/flags will be parsed as positional arguments.
Using --
causes everything to the right to be threated as positional arguments.
- Use
make test
to run tests on the project. - Use
make coverage
to create tests/coverage.html with the test coverage of the library.