Changeset 7259 in orxonox.OLD for trunk/src/lib/parser/cmdline_parser
- Timestamp:
- Mar 30, 2006, 2:41:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/parser/cmdline_parser/cmdline_parser.cc
r7256 r7259 112 112 return false; 113 113 114 i += it->numArgs + 1;114 i += it->numArgs; 115 115 116 116 if ( finish ) 117 { 118 i++; 117 119 break; 120 } 118 121 else 119 { 122 { 120 123 assert( it->numArgs == 0 ); 121 124 } … … 162 165 else 163 166 { 164 if ( arg.length() != 2 && entry.numArgs != 0 ) 165 { 166 PRINTF(1)("using multiple flags together is only alowed if none needs an arugument. %s needs %d arguments\n", entry.shortOption, entry.numArgs); 167 if ( arg.find(entry.shortOption) != std::string::npos && arg.length() != 2 && entry.numArgs != 0 ) 168 { 169 PRINTF(1)("using multiple flags together is only alowed if none needs an arugument. %c needs %d arguments\n", entry.shortOption, entry.numArgs); 170 //FIXME find beter solution 171 exit(1); 167 172 return false; 168 173 }
Note: See TracChangeset
for help on using the changeset viewer.