Changeset 4134 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 9, 2005, 10:26:59 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/gui_gtk.cc
r4133 r4134 318 318 void Widget::printHelp(Widget* widget) 319 319 { 320 bool hasFlag = false;320 int helpLen=0; 321 321 322 322 if (widget->optionType > GUI_NOTHING) … … 329 329 { 330 330 PRINT(0)("-%s", option->flagNameShort); 331 h asFlag = true;331 helpLen += strlen(option->flagNameShort)+1; 332 332 } 333 333 if (option->flagName) 334 334 { 335 if (hasFlag) 336 PRINT(0)("|"); 335 if (helpLen > 0) 336 { 337 PRINT(0)("|"); 338 helpLen++; 339 } 337 340 PRINT(0)("--%s:", option->flagName); 338 h asFlag = true;341 helpLen += strlen(option->flagName)+2; 339 342 } 343 while ((helpLen ++) < 29) 344 PRINT(0)(" "); 340 345 if (option->shortDescription) 341 PRINT(0)(" \t\t%s\n", option->shortDescription);346 PRINT(0)("%s\n", option->shortDescription); 342 347 else 343 348 PRINT(0)("\n"); -
orxonox/trunk/src/orxonox.cc
r4133 r4134 369 369 { 370 370 PRINT(0)("orxonox: starts the orxonox game - rules\n"); 371 PRINT(0)("usage: orxonox [arg ]\n\n");371 PRINT(0)("usage: orxonox [arg [arg...]]\n\n"); 372 372 PRINT(0)("valid options:\n"); 373 PRINT(0)(" --benchmark\tstarts the orxonox benchmark\n");374 PRINT(0)(" --help \tshows this menu\n");375 373 { 376 374 Gui* gui = new Gui(argc, argv); … … 378 376 delete gui; 379 377 } 378 PRINT(0)(" --benchmark:\t\t\tstarts the orxonox benchmark\n"); 379 PRINT(0)(" --help: \t\t\tshows this help\n"); 380 380 } 381 381
Note: See TracChangeset
for help on using the changeset viewer.