VirtualBox

Changeset 55598 in vbox for trunk/src


Ignore:
Timestamp:
May 2, 2015 5:04:18 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99971
Message:

VBoxManage guestcontrol start/run corrections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r55593 r55598  
    310310                     "                              [--passwordfile <file> | --password <password>]\n"
    311311                     "                              [--domain <domain>] [--verbose] [--timeout <msec>]\n"
    312                      "                              [--setenv <NAME>=<VALUE>] [--unset <NAME>]\n"
    313                      "                              [--unquoted-args] [--no-wait-stdout|--wait-stdout]\n"
     312                     "                              [--putenv <NAME>[=<VALUE>]] [--unquoted-args]\n"
     313                     "                              [--no-wait-stdout|--wait-stdout]\n"
    314314                     "                              [--no-wait-stderr|--wait-stderr]\n"
    315315                     "                              [--dos2unix] [--unix2dos]\n"
    316                      "                              [--] <program/arg0> [argument1] ... [argumentN]]\n"
     316                     "                              -- <program/arg0> [argument1] ... [argumentN]]\n"
    317317                     "\n");
    318318    if (uSubCmd & USAGE_GSTCTRL_START)
     
    322322                     "                              [--passwordfile <file> | --password <password>]\n"
    323323                     "                              [--domain <domain>] [--verbose] [--timeout <msec>]\n"
    324                      "                              [--setenv <NAME>=<VALUE>] [--unset <NAME>]\n"
    325                      "                              [--unquoted-args] [--dos2unix] [--unix2dos]\n"
    326                      "                              [--] <program/arg0> [argument1] ... [argumentN]]\n"
     324                     "                              [--putenv <NAME>[=<VALUE>]] [--unquoted-args]\n"
     325                     "                              [--dos2unix] [--unix2dos]\n"
     326                     "                              -- <program/arg0> [argument1] ... [argumentN]]\n"
    327327                 "\n");
    328328    if (uSubCmd == USAGE_GSTCTRL_EXEC)
     
    12321232    static const RTGETOPTDEF s_aOptions[] =
    12331233    {
    1234         { "--environment",                  'E',                                      RTGETOPT_REQ_STRING  },
     1234        { "--putenv",                       'E',                                      RTGETOPT_REQ_STRING  },
    12351235        { "--executable",                   'e',                                      RTGETOPT_REQ_STRING  },
    12361236        { "--timeout",                      't',                                      RTGETOPT_REQ_UINT32  },
     
    12571257    com::SafeArray<IN_BSTR>                 aEnv;
    12581258    const char *                            pszImage            = NULL;
    1259     bool                                    fDetached           = false;
    1260     bool                                    fWaitForStdOut      = true;
    1261     bool                                    fWaitForStdErr      = true;
     1259    bool                                    fWaitForStdOut      = fRunCmd;
     1260    bool                                    fWaitForStdErr      = fRunCmd;
    12621261    RTVFSIOSTREAM                           hVfsStdOut          = NIL_RTVFSIOSTREAM;
    12631262    RTVFSIOSTREAM                           hVfsStdErr          = NIL_RTVFSIOSTREAM;
     
    12791278                case 'E':
    12801279                    if (   ValueUnion.psz[0] == '\0'
    1281                         || ValueUnion.psz[0] == '='
    1282                         || strchr(ValueUnion.psz, '=') == NULL)
     1280                        || ValueUnion.psz[0] == '=')
    12831281                        return errorSyntaxEx(USAGE_GUESTCONTROL, USAGE_GSTCTRL_RUN,
    1284                                              "Invalid argument variable=value pair: '%s'", ValueUnion.psz);
     1282                                             "Invalid argument variable[=value]: '%s'", ValueUnion.psz);
    12851283                    aEnv.push_back(Bstr(ValueUnion.psz).raw());
    12861284                    break;
Note: See TracChangeset for help on using the changeset viewer.

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