- Timestamp:
- Apr 6, 2009 11:12:15 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r18591 r18745 5368 5368 { 5369 5369 const char *arg = qApp->argv() [i]; 5370 if ( !::strcmp (arg, "-startvm")) 5370 if ( !::strcmp (arg, "--startvm") 5371 || !::strcmp (arg, "-startvm") 5372 || !::strcmp (arg, "-s") 5373 || !::strcmp (arg, "--vm") 5374 || !::strcmp (arg, "-vm")) 5371 5375 { 5372 5376 if (++i < argc) … … 5391 5395 } 5392 5396 #ifdef VBOX_GUI_WITH_SYSTRAY 5393 else if (!::strcmp (arg, "-systray") )5397 else if (!::strcmp (arg, "-systray") || !::strcmp (arg, "--systray")) 5394 5398 { 5395 5399 mIsTrayMenu = true; 5396 5400 } 5397 5401 #endif 5398 else if (!::strcmp (arg, "-comment") )5402 else if (!::strcmp (arg, "-comment") || !::strcmp (arg, "--comment")) 5399 5403 { 5400 5404 ++i; 5401 5405 } 5402 else if (!::strcmp (arg, "-rmode") )5406 else if (!::strcmp (arg, "-rmode") || !::strcmp (arg, "--rmode")) 5403 5407 { 5404 5408 if (++i < argc) … … 5410 5414 mDbgEnabled = true; 5411 5415 } 5412 else if (!::strcmp( arg, "-debug") || !::strcmp (arg, "--debug"))5416 else if (!::strcmp( arg, "-debug") || !::strcmp (arg, "--debug")) 5413 5417 { 5414 5418 mDbgEnabled = true; -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r18265 r18745 231 231 "\n" 232 232 "Usage:\n" 233 " - startvm <vmname|UUID>start a VM by specifying its UUID or name\n"234 " - rmode %-19s select different render mode (default is %s)\n"233 " --startvm <vmname|UUID> start a VM by specifying its UUID or name\n" 234 " --rmode %-18s select different render mode (default is %s)\n" 235 235 # ifdef VBOX_WITH_DEBUGGER_GUI 236 " - dbgenable the GUI debug menu\n"237 " - debug like-dbg and show debug windows at VM startup\n"238 " - no-debugdisable the GUI debug menu and debug windows\n"236 " --dbg enable the GUI debug menu\n" 237 " --debug like --dbg and show debug windows at VM startup\n" 238 " --no-debug disable the GUI debug menu and debug windows\n" 239 239 "\n" 240 240 "The following environment variables are evaluated:\n" … … 258 258 #ifdef Q_WS_WIN 259 259 /* Initialize COM early, before QApplication calls OleInitialize(), to 260 * make sure we enter the multi thre ded apartment instead of a single260 * make sure we enter the multi threaded apartment instead of a single 261 261 * threaded one. Note that this will make some non-threadsafe system 262 262 * services that use OLE and require STA (such as Drag&Drop) not work … … 506 506 for (int i = 1; i < argc; i++) 507 507 { 508 if (!::strcmp (argv[i], "-startvm" )) 508 if ( !::strcmp(argv[i], "--startvm") 509 || !::strcmp(argv[i], "-startvm") 510 || !::strcmp(argv[i], "-s") 511 || !::strcmp(argv[i], "--vm") 512 || !::strcmp(argv[i], "-vm")) 509 513 { 510 514 fInitSUPLib = true;
Note:
See TracChangeset
for help on using the changeset viewer.