bool parseCommandLine(ez::ezOptionParser& opt, int argc, const char* argv[]) { opt.parse(argc, argv); if (opt.isSet("-h")) { std::string usage; opt.getUsage(usage); std::cout << usage; return false; } return true; }
void Usage(ez::ezOptionParser &opt) { std::string usage; opt.getUsage(usage); std::cout << usage; };
void printUsage(ez::ezOptionParser & opt) { string usage; opt.getUsage(usage, 160); cout << usage; exit(1); }
void PrintHelpString(ez::ezOptionParser &parser) { std::string usage; parser.getUsage(usage); std::cout << usage; }