C++ Command Line Parser

Resources and libraries about how to parse command line arguments. Try to make program receive standard and flexible command line arguments.

Goal

Just like the git suite.

git commit -asm 'new commit'    
  • Both short and long form are acceptable.

  • Can be combined together. It is really compact and really handy to use in this form.

Current Example project

AnyOption is used in the example project.

It is working well, and the only problem is annoying warnings of strcpy(). Because the visual studio recommends to use strcpy_s(). And also the std::cout can not be seen in Qt debug console.
Another problem is AnyOption can read options from a file with “:” separating “item:value” pairs. This kind of non-standard format is not very comfortable to use.

Resources