C++11 command-line parser library for building CLI applications
Simple and intuitive command-line parser for C++11
cli11$ g++ -std=c++11 myapp.cpp -o myapp && ./myapp --help$ cat > example.cpp << 'EOF'
#include "CLI/CLI.hpp"
int main(int argc, char** argv) {
CLI::App app{"My Application"};
int count = 0;
app.add_option("-c,--count", count, "Number of items");
CLI11_PARSE(app, argc, argv);
return 0;
}
EOF$ myapp --count 5 --verbose --output file.txt