Simplest example using the arg library
#include <iostream>
int main(int argc, char ** argv)
{
int n;
std::cout << n << '\n';
return 0;
}
void parse(int argc, char *argv[], bool ignore_unknown=false)
perform command-line parsing
Definition: arg.cc:292