Changeset 7250 in orxonox.OLD for branches/preferences/src/lib/parser/cmdline_parser/cmdline_parser.h
- Timestamp:
- Mar 26, 2006, 2:27:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/preferences/src/lib/parser/cmdline_parser/cmdline_parser.h
r7243 r7250 21 21 char shortOption; 22 22 int numArgs; 23 std::string argNames; 24 std::string help; 23 25 }; 24 26 … … 35 37 virtual ~CmdLineParser(); 36 38 37 bool add( int id, const std::string& longOption, char shortOption, int numArgs, bool back=false );39 bool add( int id, const std::string& longOption, char shortOption, int numArgs, const std::string & argNames, const std::string& help, bool back=false ); 38 40 39 41 bool parse( ArgParserCallback cb, void* data, int argc, char** argv ); 40 42 43 void showHelp(); 44 41 45 private: 42 46 ArgTable argTable; 47 std::string exeName; 43 48 44 49 inline bool matches( ArgTableEntry entry, std::string arg, bool & finish );
Note: See TracChangeset
for help on using the changeset viewer.