VirtualBox

Changeset 18745 in vbox for trunk/src


Ignore:
Timestamp:
Apr 6, 2009 11:12:15 AM (16 years ago)
Author:
vboxsync
Message:

Frontends/Qt: double-dash command line options

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r18591 r18745  
    53685368    {
    53695369        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"))
    53715375        {
    53725376            if (++i < argc)
     
    53915395        }
    53925396#ifdef VBOX_GUI_WITH_SYSTRAY
    5393         else if (!::strcmp (arg, "-systray"))
     5397        else if (!::strcmp (arg, "-systray") || !::strcmp (arg, "--systray"))
    53945398        {
    53955399            mIsTrayMenu = true;
    53965400        }
    53975401#endif
    5398         else if (!::strcmp (arg, "-comment"))
     5402        else if (!::strcmp (arg, "-comment") || !::strcmp (arg, "--comment"))
    53995403        {
    54005404            ++i;
    54015405        }
    5402         else if (!::strcmp (arg, "-rmode"))
     5406        else if (!::strcmp (arg, "-rmode") || !::strcmp (arg, "--rmode"))
    54035407        {
    54045408            if (++i < argc)
     
    54105414            mDbgEnabled = true;
    54115415        }
    5412         else if (!::strcmp( arg, "-debug") || !::strcmp( arg, "--debug"))
     5416        else if (!::strcmp( arg, "-debug") || !::strcmp (arg, "--debug"))
    54135417        {
    54145418            mDbgEnabled = true;
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r18265 r18745  
    231231            "\n"
    232232            "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"
    235235# ifdef VBOX_WITH_DEBUGGER_GUI
    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"
     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"
    239239            "\n"
    240240            "The following environment variables are evaluated:\n"
     
    258258#ifdef Q_WS_WIN
    259259    /* Initialize COM early, before QApplication calls OleInitialize(), to
    260      * make sure we enter the multi threded apartment instead of a single
     260     * make sure we enter the multi threaded apartment instead of a single
    261261     * threaded one. Note that this will make some non-threadsafe system
    262262     * services that use OLE and require STA (such as Drag&Drop) not work
     
    506506    for (int i = 1; i < argc; i++)
    507507    {
    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"))
    509513        {
    510514            fInitSUPLib = true;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette