Parsing the command line in C++

Argstream is a "library" for parsing the command line arguments in a C++ program. It is released under the GPL license. Here is a list of functionalities offered for the parsing of command line arguments :

Here is below an example of use that should match almost all your needs :