yatesParse 0.2 reviewDownload
yatesParse is a C++ library for parsing and handling command line arguments
yatesParse is a C++ library for parsing and handling command line arguments. It can handle normal arguments (foo --help, foo -h, etc) and arguments with values (foo --file evilplans.txt, foo -f evilplans.txt, etc).
A small example program using yatesParse is available in SVN. Complete Doxygen docs are available in both the Docs section of the yatesParse website, and in SVN.
A brief explanation of how yatesParse works:
Command line arguments are added by calling the add_option function, the user must specify the option to add and the address of the function to call when that argument has been detected.
When the parsing function detects an argument, a function of the user's choice is called and, if the argument takes a value, the value is passed to the function.
yatesParse can also generate output for --help from the options added and program information that the user specifies.
yatesParse 0.2 keywords