This is an example of simple usage. // include cmdline.h #include "cmdline.h" int main(int argc, char *argv[]) { // create a parser cmdline::parser a; // add specified type of variable. // 1st argument is long name // 2nd argument is short name (no short name if '\0' specified) // 3rd argument is description // 4th argument is mandatory (optional. default is false) // 5th argument is default value
{{#tags}}- {{label}}
{{/tags}}