- Timestamp:
- May 2, 2015 5:04:18 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99971
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r55593 r55598 310 310 " [--passwordfile <file> | --password <password>]\n" 311 311 " [--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" 314 314 " [--no-wait-stderr|--wait-stderr]\n" 315 315 " [--dos2unix] [--unix2dos]\n" 316 " [--]<program/arg0> [argument1] ... [argumentN]]\n"316 " -- <program/arg0> [argument1] ... [argumentN]]\n" 317 317 "\n"); 318 318 if (uSubCmd & USAGE_GSTCTRL_START) … … 322 322 " [--passwordfile <file> | --password <password>]\n" 323 323 " [--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" 327 327 "\n"); 328 328 if (uSubCmd == USAGE_GSTCTRL_EXEC) … … 1232 1232 static const RTGETOPTDEF s_aOptions[] = 1233 1233 { 1234 { "-- environment",'E', RTGETOPT_REQ_STRING },1234 { "--putenv", 'E', RTGETOPT_REQ_STRING }, 1235 1235 { "--executable", 'e', RTGETOPT_REQ_STRING }, 1236 1236 { "--timeout", 't', RTGETOPT_REQ_UINT32 }, … … 1257 1257 com::SafeArray<IN_BSTR> aEnv; 1258 1258 const char * pszImage = NULL; 1259 bool fDetached = false; 1260 bool fWaitForStdOut = true; 1261 bool fWaitForStdErr = true; 1259 bool fWaitForStdOut = fRunCmd; 1260 bool fWaitForStdErr = fRunCmd; 1262 1261 RTVFSIOSTREAM hVfsStdOut = NIL_RTVFSIOSTREAM; 1263 1262 RTVFSIOSTREAM hVfsStdErr = NIL_RTVFSIOSTREAM; … … 1279 1278 case 'E': 1280 1279 if ( ValueUnion.psz[0] == '\0' 1281 || ValueUnion.psz[0] == '=' 1282 || strchr(ValueUnion.psz, '=') == NULL) 1280 || ValueUnion.psz[0] == '=') 1283 1281 return errorSyntaxEx(USAGE_GUESTCONTROL, USAGE_GSTCTRL_RUN, 1284 "Invalid argument variable =value pair: '%s'", ValueUnion.psz);1282 "Invalid argument variable[=value]: '%s'", ValueUnion.psz); 1285 1283 aEnv.push_back(Bstr(ValueUnion.psz).raw()); 1286 1284 break;
Note:
See TracChangeset
for help on using the changeset viewer.