Changeset 12026 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 3, 2008 11:40:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp
r11822 r12026 124 124 } 125 125 126 /** 127 * Show all available command line parameters. 128 */ 129 static void showHelp() 130 { 131 QString mode = "", dflt = ""; 132 #ifdef VBOX_GUI_USE_SDL 133 mode += "sdl"; 134 #endif 135 #ifdef VBOX_GUI_USE_QIMAGE 136 if (!mode.isEmpty()) 137 mode += "|"; 138 mode += "image"; 139 #endif 140 #ifdef VBOX_GUI_USE_DDRAW 141 if (!mode.isEmpty()) 142 mode += "|"; 143 mode += "ddraw"; 144 #endif 145 #ifdef VBOX_GUI_USE_QUARTZ2D 146 if (!mode.isEmpty()) 147 mode += "|"; 148 mode += "quartz2d"; 149 #endif 150 #if defined (Q_WS_MAC) && defined (VBOX_GUI_USE_QUARTZ2D) 151 dflt = "quartz2d"; 152 #elif (defined (Q_WS_WIN32) || defined (Q_WS_PM)) && defined (VBOX_GUI_USE_QIMAGE) 153 dflt = "image"; 154 #elif defined (Q_WS_X11) && defined (VBOX_GUI_USE_SDL) 155 dflt = "sdl"; 156 #else 157 dflt = "image"; 158 #endif 159 160 RTPrintf("VirtualBox Graphical User Interface\n" 161 "(C) 2005-2008 Sun Microsystems, Inc.\n" 162 "All rights reserved.\n" 163 "\n" 164 "Usage:\n" 165 " -startvm <vmname|UUID> start a VM by specifying its UUID or name\n" 166 " -rmode %-19s select different render mode (default is %s)\n", 167 mode.toLatin1().constData(), 168 dflt.toLatin1().constData()); 169 } 170 126 171 extern "C" DECLEXPORT(int) TrustedMain (int argc, char **argv, char ** /*envp*/) 127 172 { … … 140 185 HRESULT hrc = COMBase::InitializeCOM(); 141 186 #endif 187 188 int i; 189 for (i=0; i<argc; i++) 190 if ( !strcmp(argv[i], "-h") 191 || !strcmp(argv[i], "-?") 192 || !strcmp(argv[i], "-help") 193 || !strcmp(argv[i], "--help")) 194 { 195 showHelp(); 196 return 0; 197 } 142 198 143 199 #if defined(DEBUG) && defined(Q_WS_X11) && defined(RT_OS_LINUX)
Note:
See TracChangeset
for help on using the changeset viewer.