#include #include void opt_parser_usage(int argc, char ** argv) { // Command line arguments parser takes standard argc and argv from main() // During parse process it calls getopt function to get the data struct option long_options[] = { { 0, 0, 0, 0 } }; ctlib::opt_parser a_parser(argc // main's argc , argv // main's argv , "ab:" // short options, getopt style , long_options // array of long options (struct option defined in getopt.h) ); // You should never invoke this method directly // It's invoked by config as a part of overall parse process a_parser.parse(); // You should never invoke this method directly // It's invoked by config as a part of overall clear process a_parser.clear(); } int main(int argc, char ** argv) { opt_parser_usage(argc, argv); return 0; }