| 220 | |
| 221 | |
| 222 | const char * Parser::help(const string& cmd) const |
| 223 | { |
| 224 | HelpTable::const_iterator hp = mHelpTable.find(cmd); |
| 225 | if (hp==mHelpTable.end()) return "no help available"; |
| 226 | return hp->second.c_str(); |
| 227 | } |
| 228 | |
| 229 | |
| 230 | // Parse options in optstring out of argc,argv. |