Changeset 94181 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 11, 2022 4:55:03 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94179 r94181 252 252 #endif 253 253 { "extpack", USAGE_S_NEWCMD, HELP_CMD_EXTPACK, handleExtPack, 0 }, 254 { "bandwidthctl", USAGE_ BANDWIDTHCONTROL, VBMG_CMD_TODO, handleBandwidthControl, 0 },254 { "bandwidthctl", USAGE_S_NEWCMD, HELP_CMD_BANDWIDTHCTL, handleBandwidthControl, 0 }, 255 255 { "debugvm", USAGE_S_NEWCMD, HELP_CMD_DEBUGVM, handleDebugVM, 0 }, 256 256 { "convertfromraw", USAGE_CONVERTFROMRAW, VBMG_CMD_TODO, handleConvertFromRaw, VBMG_CMD_F_NO_COM }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94179 r94181 132 132 USAGE_I_SETHDPARENTUUID, 133 133 USAGE_I_PASSWORDHASH, 134 USAGE_BANDWIDTHCONTROL,135 134 USAGE_I_GUESTSTATS, 136 135 USAGE_I_REPAIRHD, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageBandwidthControl.cpp
r93705 r94181 109 109 }; 110 110 111 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_ADD); 111 112 112 113 Bstr name(a->argv[2]); … … 158 159 default: 159 160 { 160 errorGetOpt( USAGE_BANDWIDTHCONTROL,c, &ValueUnion);161 errorGetOpt(c, &ValueUnion); 161 162 rc = E_FAIL; 162 163 break; … … 196 197 }; 197 198 199 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_SET); 198 200 199 201 Bstr name(a->argv[2]); … … 229 231 default: 230 232 { 231 errorGetOpt( USAGE_BANDWIDTHCONTROL,c, &ValueUnion);233 errorGetOpt(c, &ValueUnion); 232 234 rc = E_FAIL; 233 235 break; … … 258 260 static RTEXITCODE handleBandwidthControlRemove(HandlerArg *a, ComPtr<IBandwidthControl> &bwCtrl) 259 261 { 262 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_REMOVE); 263 260 264 Bstr name(a->argv[2]); 261 265 CHECK_ERROR2I_RET(bwCtrl, DeleteBandwidthGroup(name.raw()), RTEXITCODE_FAILURE); … … 276 280 }; 277 281 282 setCurrentSubcommand(HELP_SCOPE_BANDWIDTHCTL_LIST); 278 283 VMINFO_DETAILS enmDetails = VMINFO_STANDARD; 279 284 … … 290 295 break; 291 296 default: 292 return errorGetOpt( USAGE_BANDWIDTHCONTROL,c, &ValueUnion);297 return errorGetOpt(c, &ValueUnion); 293 298 } 294 299 } … … 313 318 314 319 if (a->argc < 2) 315 return errorSyntax( USAGE_BANDWIDTHCONTROL,BWControl::tr("Too few parameters"));320 return errorSyntax(BWControl::tr("Too few parameters")); 316 321 else if (a->argc > 7) 317 return errorSyntax( USAGE_BANDWIDTHCONTROL,BWControl::tr("Too many parameters"));322 return errorSyntax(BWControl::tr("Too many parameters")); 318 323 319 324 /* try to find the given machine */ … … 356 361 else 357 362 { 358 errorSyntax( USAGE_BANDWIDTHCONTROL,BWControl::tr("Invalid parameter '%s'"), a->argv[1]);363 errorSyntax(BWControl::tr("Invalid parameter '%s'"), a->argv[1]); 359 364 rc = E_FAIL; 360 365 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94179 r94181 625 625 "\n", SEP); 626 626 627 if (enmCommand == USAGE_BANDWIDTHCONTROL || enmCommand == USAGE_S_ALL)628 RTStrmPrintf(pStrm,629 "%s bandwidthctl %s <uuid|vmname>\n"630 " add <name> --type disk|network\n"631 " --limit <megabytes per second>[k|m|g|K|M|G] |\n"632 " set <name>\n"633 " --limit <megabytes per second>[k|m|g|K|M|G] |\n"634 " remove <name> |\n"635 " list [--machinereadable]\n"636 " (limit units: k=kilobit, m=megabit, g=gigabit,\n"637 " K=kilobyte, M=megabyte, G=gigabyte)\n"638 "\n", SEP);639 640 627 if (enmCommand == USAGE_SHOWMEDIUMINFO || enmCommand == USAGE_S_ALL) 641 628 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.