Yet Another argument parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dominik Meyer 4ad0da4ace
ADD: added license file
5 years ago
examples ADD: added first example 5 years ago
src ADD: added current version of parser 5 years ago
.gitignore ADD: ignore some files 5 years ago
Doxyfile ADD: added doxygen configuration 5 years ago
LICENSE ADD: added license file 5 years ago ADD: updated Readme 5 years ago

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Yet Another Argument Parser (YAAP)

YAAP is a simple command line argument parser for C. It uses functions and structures to add arguments to the parsing context and parse the command line.


Dominik Meyer


Copyright 2018 by Dominik Meyer Licensed under GPLv3


  • git like command support (git commit)
  • short and long flag support ( -t YAAP or title=YAAP)
  • string argument support ( -t YAAP or title=YAAP)


  • simple flags (-v, -V, -h, help)
  • integer arguments (-c 10)
  • hex arguments ( -c 0x5A)


YAAP is intented to be copied into your project directory. Different approaches are available:

  • simpe copy argparse.h and argparse.c into your source directory
  • add the github repository as a submodule
  • add the github repository as a subtree
  • add the github repository as a subrepo

In all cases you have to make sure that argparse.c is compiled into an object file and is appended to your link stage.

Signed Commits

All commits are signed with the GPG key for valid from 2017-07-30

Fingerprint: 8A96 F2F7 FC07 3485 C724 9879 B4C3 12B6 0060 6B64