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
AnyOption - C/C++ Command line and resource file option parsing
Latest version by hamannhamann/AnyOption
ArgvParser - C++ class for convenient parsing of command line options
QtArg - a small C++ library based on the Qt 4 for parsing command line arguments.
KCmdLineArgs - A class for command-line argument handling.