#include #include #include #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Example program to test JPARSER::JParser. * \author mdejong */ int main(int argc, char **argv) { using namespace std; string text; bool a, b, c; int debug; try { JParser zap("Example program to test command line parser."); zap["text"] = make_field(text); zap["a"] = make_field(a); zap["b"] = make_field(b); zap["c"] = make_field(c); zap["debug"] = make_field(debug) = 3, 0, 1, 2; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } }