void loadCmdLine(CmdLineParser &clp) { clp.setMainHelpText("A simple Echo Server"); // All options are optional // Number of Threads clp.addCmdLineOption(new CmdLineOptionInt(ARG_LISTEN_PORT, string("TCP port to listen on"), 3868)); // Verbosity clp.addCmdLineOption(new CmdLineOptionFlag(ARG_VERBOSE, string("Turn on verbosity"), false)); }
void loadCmdLine(CmdLineParser &clp) { clp.setMainHelpText("A simple Echo Server"); // All options are optional // IP Address clp.addCmdLineOption(new CmdLineOptionStr(ARG_IP_ADDRESS, string("IP Address to listen on"), string("127.0.0.1"))); // TCP port clp.addCmdLineOption(new CmdLineOptionInt(ARG_LISTEN_PORT, string("TCP port to listen on"), 3868)); // Verbosity clp.addCmdLineOption(new CmdLineOptionFlag(ARG_VERBOSE, string("Turn on verbosity"), false)); }