Changeset 93703 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
- Timestamp:
- Feb 11, 2022 7:03:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r93480 r93703 258 258 259 259 if (enmApplType != LOCAL) 260 return errorSyntax(USAGE_EXPORTAPPLIANCE, 261 Appliance::tr("Option \"%s\" can't be used together with \"--cloud\" option."), 260 return errorSyntax(Appliance::tr("Option \"%s\" can't be used together with \"--cloud\" option."), 262 261 GetState.pDef->pszLong); 263 262 if (ValueUnion.u32 == (uint32_t)-1) 264 return errorSyntax(USAGE_EXPORTAPPLIANCE, 265 Appliance::tr("Value of option \"%s\" is out of range."), 263 return errorSyntax(Appliance::tr("Value of option \"%s\" is out of range."), 266 264 GetState.pDef->pszLong); 267 265 … … 272 270 case 'o': // --ostype 273 271 if (enmApplType == NOT_SET) 274 return errorSyntax(USAGE_EXPORTAPPLIANCE, 275 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 272 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 276 273 GetState.pDef->pszLong); 277 274 mapArgsMapsPerVsys[ulCurVsys]["ostype"] = ValueUnion.psz; … … 280 277 case 'V': // --vmname 281 278 if (enmApplType == NOT_SET) 282 return errorSyntax(USAGE_IMPORTAPPLIANCE, 283 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 279 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 284 280 GetState.pDef->pszLong); 285 281 mapArgsMapsPerVsys[ulCurVsys]["vmname"] = ValueUnion.psz; … … 288 284 case 'S': // --settingsfile 289 285 if (enmApplType != LOCAL) 290 return errorSyntax(USAGE_IMPORTAPPLIANCE, 291 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 286 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 292 287 GetState.pDef->pszLong); 293 288 mapArgsMapsPerVsys[ulCurVsys]["settingsfile"] = ValueUnion.psz; … … 296 291 case 'p': // --basefolder 297 292 if (enmApplType == NOT_SET) 298 return errorSyntax(USAGE_IMPORTAPPLIANCE, 299 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 293 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 300 294 GetState.pDef->pszLong); 301 295 mapArgsMapsPerVsys[ulCurVsys]["basefolder"] = ValueUnion.psz; … … 304 298 case 'g': // --group 305 299 if (enmApplType != LOCAL) 306 return errorSyntax(USAGE_IMPORTAPPLIANCE, 307 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 300 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 308 301 GetState.pDef->pszLong); 309 302 mapArgsMapsPerVsys[ulCurVsys]["group"] = ValueUnion.psz; … … 312 305 case 'd': // --description 313 306 if (enmApplType == NOT_SET) 314 return errorSyntax(USAGE_IMPORTAPPLIANCE, 315 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 307 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 316 308 GetState.pDef->pszLong); 317 309 mapArgsMapsPerVsys[ulCurVsys]["description"] = ValueUnion.psz; … … 320 312 case 'L': // --eula 321 313 if (enmApplType != LOCAL) 322 return errorSyntax(USAGE_IMPORTAPPLIANCE, 323 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 314 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 324 315 GetState.pDef->pszLong); 325 316 mapArgsMapsPerVsys[ulCurVsys]["eula"] = ValueUnion.psz; … … 328 319 case 'm': // --memory 329 320 if (enmApplType == NOT_SET) 330 return errorSyntax(USAGE_IMPORTAPPLIANCE, 331 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 321 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 332 322 GetState.pDef->pszLong); 333 323 mapArgsMapsPerVsys[ulCurVsys]["memory"] = ValueUnion.psz; … … 336 326 case 'c': // --cpus 337 327 if (enmApplType == NOT_SET) 338 return errorSyntax(USAGE_IMPORTAPPLIANCE, 339 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 328 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 340 329 GetState.pDef->pszLong); 341 330 mapArgsMapsPerVsys[ulCurVsys]["cpus"] = ValueUnion.psz; … … 344 333 case 'u': // --unit 345 334 if (enmApplType != LOCAL) 346 return errorSyntax(USAGE_IMPORTAPPLIANCE, 347 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 335 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 348 336 GetState.pDef->pszLong); 349 337 if (ValueUnion.u32 == (uint32_t)-1) 350 return errorSyntax(USAGE_EXPORTAPPLIANCE, 351 Appliance::tr("Value of option \"%s\" is out of range."), 338 return errorSyntax(Appliance::tr("Value of option \"%s\" is out of range."), 352 339 GetState.pDef->pszLong); 353 340 … … 357 344 case 'x': // --ignore 358 345 if (enmApplType != LOCAL) 359 return errorSyntax(USAGE_IMPORTAPPLIANCE, 360 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 346 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 361 347 GetState.pDef->pszLong); 362 348 if (ulCurUnit == (uint32_t)-1) 363 return errorSyntax(USAGE_IMPORTAPPLIANCE, 364 Appliance::tr("Option \"%s\" requires preceding --unit option."), 349 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --unit option."), 365 350 GetState.pDef->pszLong); 366 351 mapIgnoresMapsPerVsys[ulCurVsys][ulCurUnit] = true; … … 369 354 case 'T': // --scsitype 370 355 if (enmApplType != LOCAL) 371 return errorSyntax(USAGE_IMPORTAPPLIANCE, 372 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 356 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 373 357 GetState.pDef->pszLong); 374 358 if (ulCurUnit == (uint32_t)-1) 375 return errorSyntax(USAGE_IMPORTAPPLIANCE, 376 Appliance::tr("Option \"%s\" requires preceding --unit option."), 359 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --unit option."), 377 360 GetState.pDef->pszLong); 378 361 mapArgsMapsPerVsys[ulCurVsys][Utf8StrFmt("scsitype%u", ulCurUnit)] = ValueUnion.psz; … … 381 364 case 'C': // --controller 382 365 if (enmApplType != LOCAL) 383 return errorSyntax(USAGE_IMPORTAPPLIANCE, 384 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 366 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 385 367 GetState.pDef->pszLong); 386 368 if (ulCurUnit == (uint32_t)-1) 387 return errorSyntax(USAGE_IMPORTAPPLIANCE, 388 Appliance::tr("Option \"%s\" requires preceding --unit option."), 369 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --unit option."), 389 370 GetState.pDef->pszLong); 390 371 mapArgsMapsPerVsys[ulCurVsys][Utf8StrFmt("controller%u", ulCurUnit)] = ValueUnion.psz; … … 393 374 case 'E': // --port 394 375 if (enmApplType != LOCAL) 395 return errorSyntax(USAGE_IMPORTAPPLIANCE, 396 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 376 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 397 377 GetState.pDef->pszLong); 398 378 if (ulCurUnit == (uint32_t)-1) 399 return errorSyntax(USAGE_IMPORTAPPLIANCE, 400 Appliance::tr("Option \"%s\" requires preceding --unit option."), 379 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --unit option."), 401 380 GetState.pDef->pszLong); 402 381 mapArgsMapsPerVsys[ulCurVsys][Utf8StrFmt("port%u", ulCurUnit)] = ValueUnion.psz; … … 405 384 case 'D': // --disk 406 385 if (enmApplType != LOCAL) 407 return errorSyntax(USAGE_IMPORTAPPLIANCE, 408 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 386 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 409 387 GetState.pDef->pszLong); 410 388 if (ulCurUnit == (uint32_t)-1) 411 return errorSyntax(USAGE_IMPORTAPPLIANCE, 412 Appliance::tr("Option \"%s\" requires preceding --unit option."), 389 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --unit option."), 413 390 GetState.pDef->pszLong); 414 391 mapArgsMapsPerVsys[ulCurVsys][Utf8StrFmt("disk%u", ulCurUnit)] = ValueUnion.psz; … … 426 403 427 404 if (enmApplType != CLOUD) 428 return errorSyntax(USAGE_IMPORTAPPLIANCE, 429 Appliance::tr("Option \"%s\" can't be used together with \"--vsys\" option."), 405 return errorSyntax(Appliance::tr("Option \"%s\" can't be used together with \"--vsys\" option."), 430 406 GetState.pDef->pszLong); 431 407 … … 436 412 case 'k': // --cloudprofile 437 413 if (enmApplType != CLOUD) 438 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Option \"%s\" requires preceding --cloud option."),414 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 439 415 GetState.pDef->pszLong); 440 416 mapArgsMapsPerVsys[ulCurVsys]["cloudprofile"] = ValueUnion.psz; … … 443 419 case 'l': // --cloudinstanceid 444 420 if (enmApplType != CLOUD) 445 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Option \"%s\" requires preceding --cloud option."),421 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 446 422 GetState.pDef->pszLong); 447 423 mapArgsMapsPerVsys[ulCurVsys]["cloudinstanceid"] = ValueUnion.psz; … … 450 426 case 'B': // --cloudbucket 451 427 if (enmApplType != CLOUD) 452 return errorSyntax( USAGE_EXPORTAPPLIANCE,Appliance::tr("Option \"%s\" requires preceding --cloud option."),428 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 453 429 GetState.pDef->pszLong); 454 430 mapArgsMapsPerVsys[ulCurVsys]["cloudbucket"] = ValueUnion.psz; … … 459 435 strOvfFilename = ValueUnion.psz; 460 436 else 461 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Invalid parameter '%s'"), ValueUnion.psz);437 return errorSyntax(Appliance::tr("Invalid parameter '%s'"), ValueUnion.psz); 462 438 break; 463 439 … … 466 442 { 467 443 if (RT_C_IS_PRINT(c)) 468 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Invalid option -%c"), c);444 return errorSyntax(Appliance::tr("Invalid option -%c"), c); 469 445 else 470 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Invalid option case %i"), c);446 return errorSyntax(Appliance::tr("Invalid option case %i"), c); 471 447 } 472 448 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 473 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("unknown option: %s\n"), ValueUnion.psz);449 return errorSyntax(Appliance::tr("unknown option: %s\n"), ValueUnion.psz); 474 450 else if (ValueUnion.pDef) 475 return errorSyntax( USAGE_IMPORTAPPLIANCE,"%s: %Rrs", ValueUnion.pDef->pszLong, c);451 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 476 452 else 477 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("error: %Rrs"), c);453 return errorSyntax(Appliance::tr("error: %Rrs"), c); 478 454 } 479 455 } … … 481 457 /* Last check after parsing all arguments */ 482 458 if (strOvfFilename.isEmpty()) 483 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Not enough arguments for \"import\" command."));459 return errorSyntax(Appliance::tr("Not enough arguments for \"import\" command.")); 484 460 485 461 if (enmApplType == NOT_SET) … … 503 479 catch (...) 504 480 { 505 return errorSyntax( USAGE_IMPORTAPPLIANCE,Appliance::tr("Not enough arguments for import from the Cloud."));481 return errorSyntax(Appliance::tr("Not enough arguments for import from the Cloud.")); 506 482 } 507 483 … … 591 567 uint32_t ulVsys = it->first; 592 568 if (ulVsys >= cVirtualSystemDescriptions) 593 return errorSyntax(USAGE_IMPORTAPPLIANCE, 594 Appliance::tr("Invalid index %RI32 with -vsys option; the OVF contains only %zu virtual system(s).", 569 return errorSyntax(Appliance::tr("Invalid index %RI32 with -vsys option; the OVF contains only %zu virtual system(s).", 595 570 "", cVirtualSystemDescriptions), 596 571 ulVsys, cVirtualSystemDescriptions); … … 661 636 } 662 637 else 663 RTPrintf(Appliance::tr( 664 "%2u: Suggested OS type: \"%ls\"" 665 "\n (change with \"--vsys %u --ostype <type>\"; use \"list ostypes\" to list all possible values)\n"), 638 RTPrintf(Appliance::tr("%2u: Suggested OS type: \"%ls\"\n" 639 " (change with \"--vsys %u --ostype <type>\"; use \"list ostypes\" to list all possible values)\n"), 666 640 a, bstrFinalValue.raw(), i); 667 641 break; … … 675 649 } 676 650 else 677 RTPrintf(Appliance::tr( 678 "%2u: Suggested VM name \"%ls\"" 679 "\n (change with \"--vsys %u --vmname <name>\")\n"), 651 RTPrintf(Appliance::tr("%2u: Suggested VM name \"%ls\"\n" 652 " (change with \"--vsys %u --vmname <name>\")\n"), 680 653 a, bstrFinalValue.raw(), i); 681 654 break; … … 714 687 } 715 688 else 716 RTPrintf(Appliance::tr( 717 "%2u: Description \"%ls\"" 718 "\n (change with \"--vsys %u --description <desc>\")\n"), 689 RTPrintf(Appliance::tr("%2u: Description \"%ls\"\n" 690 " (change with \"--vsys %u --description <desc>\")\n"), 719 691 a, bstrFinalValue.raw(), i); 720 692 break; … … 726 698 if (strOverride == "show") 727 699 { 728 RTPrintf(Appliance::tr( 729 "%2u: End-user license agreement" 730 "\n (accept with \"--vsys %u --eula accept\"):" 731 "\n\n%ls\n\n"), 700 RTPrintf(Appliance::tr("%2u: End-user license agreement\n" 701 " (accept with \"--vsys %u --eula accept\"):\n" 702 "\n%ls\n\n"), 732 703 a, i, bstrFinalValue.raw()); 733 704 } … … 739 710 } 740 711 else 741 return errorSyntax(USAGE_IMPORTAPPLIANCE, 742 Appliance::tr("Argument to --eula must be either \"show\" or \"accept\".")); 712 return errorSyntax(Appliance::tr("Argument to --eula must be either \"show\" or \"accept\".")); 743 713 } 744 714 else 745 RTPrintf(Appliance::tr( 746 "%2u: End-user license agreement" 747 "\n (display with \"--vsys %u --eula show\";" 748 "\n accept with \"--vsys %u --eula accept\")\n"), 715 RTPrintf(Appliance::tr("%2u: End-user license agreement\n" 716 " (display with \"--vsys %u --eula show\";\n" 717 " accept with \"--vsys %u --eula accept\")\n"), 749 718 a, i, i); 750 719 break; … … 764 733 } 765 734 else 766 return errorSyntax(USAGE_IMPORTAPPLIANCE, 767 Appliance::tr("Argument to --cpus option must be a number greater than %d and less than %d."), 735 return errorSyntax(Appliance::tr("Argument to --cpus option must be a number greater than %d and less than %d."), 768 736 VMM_MIN_CPU_COUNT - 1, VMM_MAX_CPU_COUNT + 1); 769 737 } … … 785 753 } 786 754 else 787 return errorSyntax(USAGE_IMPORTAPPLIANCE, 788 Appliance::tr("Argument to --memory option must be a non-negative number.")); 755 return errorSyntax(Appliance::tr("Argument to --memory option must be a non-negative number.")); 789 756 } 790 757 else … … 803 770 } 804 771 else 805 RTPrintf(Appliance::tr( 806 "%2u: IDE controller, type %ls" 807 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 772 RTPrintf(Appliance::tr("%2u: IDE controller, type %ls\n" 773 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 808 774 a, 809 775 aVBoxValues[a], … … 820 786 } 821 787 else 822 RTPrintf(Appliance::tr( 823 "%2u: SATA controller, type %ls" 824 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 788 RTPrintf(Appliance::tr("%2u: SATA controller, type %ls\n" 789 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 825 790 a, 826 791 aVBoxValues[a], … … 837 802 } 838 803 else 839 RTPrintf(Appliance::tr( 840 "%2u: SAS controller, type %ls" 841 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 804 RTPrintf(Appliance::tr("%2u: SAS controller, type %ls\n" 805 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 842 806 a, 843 807 aVBoxValues[a], … … 865 829 } 866 830 else 867 RTPrintf(Appliance::tr( 868 "%2u: SCSI controller, type %ls" 869 "\n (change with \"--vsys %u --unit %u --scsitype {BusLogic|LsiLogic}\";" 870 "\n disable with \"--vsys %u --unit %u --ignore\")\n"), 831 RTPrintf(Appliance::tr("%2u: SCSI controller, type %ls\n" 832 " (change with \"--vsys %u --unit %u --scsitype {BusLogic|LsiLogic}\";\n" 833 " disable with \"--vsys %u --unit %u --ignore\")\n"), 871 834 a, 872 835 aVBoxValues[a], … … 884 847 } 885 848 else 886 RTPrintf(Appliance::tr( 887 "%2u: VirtioSCSI controller, type %ls" 888 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 849 RTPrintf(Appliance::tr("%2u: VirtioSCSI controller, type %ls\n" 850 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 889 851 a, 890 852 aVBoxValues[a], … … 910 872 { 911 873 if (optionsList.contains(ImportOptions_ImportToVDI)) 912 return errorSyntax(USAGE_IMPORTAPPLIANCE, 913 Appliance::tr("Option --ImportToVDI can not be used together with " 914 "a manually set target path.")); 874 return errorSyntax(Appliance::tr("Option --ImportToVDI can not be used together with a manually set target path.")); 915 875 RTUUID uuid; 916 876 /* Check if this is a uuid. If so, don't touch. */ … … 940 900 vrc = getStorageControllerDetailsFromStr(strOverride, NULL, &uTargetController); 941 901 if (RT_FAILURE(vrc)) 942 return errorSyntax(USAGE_IMPORTAPPLIANCE, 943 Appliance::tr("Invalid controller value: '%s'"), 902 return errorSyntax(Appliance::tr("Invalid controller value: '%s'"), 944 903 strOverride.c_str()); 945 904 946 905 vsdControllerType = retTypes[uTargetController]; 947 906 if (!isStorageControllerType(vsdControllerType)) 948 return errorSyntax(USAGE_IMPORTAPPLIANCE, 949 Appliance::tr("Invalid storage controller specified: %u"), 907 return errorSyntax(Appliance::tr("Invalid storage controller specified: %u"), 950 908 uTargetController); 951 909 … … 960 918 vrc = getStorageControllerDetailsFromStr(strOverride, NULL, &uTargetControllerPort); 961 919 if (RT_FAILURE(vrc)) 962 return errorSyntax(USAGE_IMPORTAPPLIANCE, 963 Appliance::tr("Invalid port value: '%s'"), 920 return errorSyntax(Appliance::tr("Invalid port value: '%s'"), 964 921 strOverride.c_str()); 965 922 … … 1008 965 if ( uOrigController == uTargetController 1009 966 && uOrigControllerPort == uTargetControllerPort) 1010 return errorSyntax(USAGE_IMPORTAPPLIANCE, 1011 Appliance::tr("Device already attached to controller %u at this port (%u) " 1012 "location."), 967 return errorSyntax(Appliance::tr("Device already attached to controller %u at this port (%u) location."), 1013 968 uTargetController, 1014 969 uTargetControllerPort); … … 1017 972 vsdControllerType = retTypes[uOrigController]; 1018 973 if (!isStorageControllerType(vsdControllerType)) 1019 return errorSyntax(USAGE_IMPORTAPPLIANCE, 1020 Appliance::tr("Invalid storage controller specified: %u"), 974 return errorSyntax(Appliance::tr("Invalid storage controller specified: %u"), 1021 975 uOrigController); 1022 976 … … 1049 1003 RTEXITCODE_FAILURE); 1050 1004 if (uTargetControllerPort >= maxPorts) 1051 return errorSyntax(USAGE_IMPORTAPPLIANCE, 1052 Appliance::tr("Illegal port value: %u. For %ls controllers the only valid values " 1053 "are 0 to %lu (inclusive)"), 1005 return errorSyntax(Appliance::tr("Illegal port value: %u. For %ls controllers the only valid values are 0 to %lu (inclusive)"), 1054 1006 uTargetControllerPort, 1055 1007 aVBoxValues[uTargetController], … … 1073 1025 if (fDiskChanged && !fControllerChanged && !fControllerPortChanged) 1074 1026 { 1075 RTPrintf(Appliance::tr("%2u: " 1076 "Hard disk image specified with --disk: source image=%ls, target path=%ls, %s" 1077 "\n (change controller with \"--vsys %u --unit %u --controller <index>\";" 1078 "\n change controller port with \"--vsys %u --unit %u --port <n>\")\n"), 1027 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --disk: source image=%ls, target path=%ls, %s\n" 1028 " (change controller with \"--vsys %u --unit %u --controller <index>\";\n" 1029 " change controller port with \"--vsys %u --unit %u --port <n>\")\n"), 1079 1030 a, 1080 1031 aOvfValues[a], … … 1086 1037 else if (fDiskChanged && fControllerChanged && !fControllerPortChanged) 1087 1038 { 1088 RTPrintf(Appliance::tr("%2u: " 1089 "Hard disk image specified with --disk and --controller: source image=%ls, target path=%ls, %s" 1090 "\n (change controller port with \"--vsys %u --unit %u --port <n>\")\n"), 1039 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --disk and --controller: source image=%ls, target path=%ls, %s\n" 1040 " (change controller port with \"--vsys %u --unit %u --port <n>\")\n"), 1091 1041 a, 1092 1042 aOvfValues[a], … … 1097 1047 else if (fDiskChanged && !fControllerChanged && fControllerPortChanged) 1098 1048 { 1099 RTPrintf(Appliance::tr("%2u: " 1100 "Hard disk image specified with --disk and --port: source image=%ls, target path=%ls, %s" 1101 "\n (change controller with \"--vsys %u --unit %u --controller <index>\")\n"), 1049 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --disk and --port: source image=%ls, target path=%ls, %s\n" 1050 " (change controller with \"--vsys %u --unit %u --controller <index>\")\n"), 1102 1051 a, 1103 1052 aOvfValues[a], … … 1108 1057 else if (!fDiskChanged && fControllerChanged && fControllerPortChanged) 1109 1058 { 1110 RTPrintf(Appliance::tr("%2u: " 1111 "Hard disk image specified with --controller and --port: source image=%ls, target path=%ls, %s" 1112 "\n (change target path with \"--vsys %u --unit %u --disk path\")\n"), 1059 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --controller and --port: source image=%ls, target path=%ls, %s\n" 1060 " (change target path with \"--vsys %u --unit %u --disk path\")\n"), 1113 1061 a, 1114 1062 aOvfValues[a], … … 1119 1067 else if (!fDiskChanged && !fControllerChanged && fControllerPortChanged) 1120 1068 { 1121 RTPrintf(Appliance::tr("%2u: " 1122 "Hard disk image specified with --port: source image=%ls, target path=%ls, %s" 1123 "\n (change target path with \"--vsys %u --unit %u --disk path\";" 1124 "\n change controller with \"--vsys %u --unit %u --controller <index>\")\n"), 1069 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --port: source image=%ls, target path=%ls, %s\n" 1070 " (change target path with \"--vsys %u --unit %u --disk path\";\n" 1071 " change controller with \"--vsys %u --unit %u --controller <index>\")\n"), 1125 1072 a, 1126 1073 aOvfValues[a], … … 1132 1079 else if (!fDiskChanged && fControllerChanged && !fControllerPortChanged) 1133 1080 { 1134 RTPrintf(Appliance::tr("%2u: " 1135 "Hard disk image specified with --controller: source image=%ls, target path=%ls, %s" 1136 "\n (change target path with \"--vsys %u --unit %u --disk path\";" 1137 "\n change controller port with \"--vsys %u --unit %u --port <n>\")\n"), 1081 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --controller: source image=%ls, target path=%ls, %s\n" 1082 " (change target path with \"--vsys %u --unit %u --disk path\";\n" 1083 " change controller port with \"--vsys %u --unit %u --port <n>\")\n"), 1138 1084 a, 1139 1085 aOvfValues[a], … … 1145 1091 else if (fDiskChanged && fControllerChanged && fControllerPortChanged) 1146 1092 { 1147 RTPrintf(Appliance::tr("%2u: " 1148 "Hard disk image specified with --disk and --controller and --port: " 1149 "source image=%ls, target path=%ls, %s\n"), 1093 RTPrintf(Appliance::tr("%2u: Hard disk image specified with --disk and --controller and --port: source image=%ls, target path=%ls, %s\n"), 1150 1094 a, 1151 1095 aOvfValues[a], … … 1232 1176 bstrFinalValue = strOverride; 1233 1177 1234 RTPrintf(Appliance::tr("%2u: Hard disk image: source image=%ls, target path=%ls, %s "1235 " \n (change target path with \"--vsys %u --unit %u --disk path\";"1236 " \n change controller with \"--vsys %u --unit %u --controller <index>\";"1237 " \n change controller port with \"--vsys %u --unit %u --port <n>\";"1238 " \ndisable with \"--vsys %u --unit %u --ignore\")\n"),1178 RTPrintf(Appliance::tr("%2u: Hard disk image: source image=%ls, target path=%ls, %s\n" 1179 " (change target path with \"--vsys %u --unit %u --disk path\";\n" 1180 " change controller with \"--vsys %u --unit %u --controller <index>\";\n" 1181 " change controller port with \"--vsys %u --unit %u --port <n>\";\n" 1182 " disable with \"--vsys %u --unit %u --ignore\")\n"), 1239 1183 a, aOvfValues[a], bstrFinalValue.raw(), strExtraConfigValue.c_str(), 1240 1184 i, a, … … 1254 1198 } 1255 1199 else 1256 RTPrintf(Appliance::tr( 1257 "%2u: CD-ROM" 1258 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 1200 RTPrintf(Appliance::tr("%2u: CD-ROM\n" 1201 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 1259 1202 a, i, a); 1260 1203 break; … … 1268 1211 } 1269 1212 else 1270 RTPrintf(Appliance::tr( 1271 "%2u: Floppy" 1272 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 1213 RTPrintf(Appliance::tr("%2u: Floppy\n" 1214 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 1273 1215 a, i, a); 1274 1216 break; … … 1290 1232 } 1291 1233 else 1292 RTPrintf(Appliance::tr( 1293 "%2u: USB controller" 1294 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 1234 RTPrintf(Appliance::tr("%2u: USB controller\n" 1235 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 1295 1236 a, i, a); 1296 1237 break; … … 1305 1246 } 1306 1247 else 1307 RTPrintf(Appliance::tr( 1308 "%2u: Sound card (appliance expects \"%ls\", can change on import)" 1309 "\n (disable with \"--vsys %u --unit %u --ignore\")\n"), 1248 RTPrintf(Appliance::tr("%2u: Sound card (appliance expects \"%ls\", can change on import)\n" 1249 " (disable with \"--vsys %u --unit %u --ignore\")\n"), 1310 1250 a, 1311 1251 aOvfValues[a], … … 1322 1262 } 1323 1263 else 1324 RTPrintf(Appliance::tr( 1325 "%2u: Suggested VM settings file name \"%ls\"" 1326 "\n (change with \"--vsys %u --settingsfile <filename>\")\n"), 1264 RTPrintf(Appliance::tr("%2u: Suggested VM settings file name \"%ls\"\n" 1265 " (change with \"--vsys %u --settingsfile <filename>\")\n"), 1327 1266 a, bstrFinalValue.raw(), i); 1328 1267 break; … … 1336 1275 } 1337 1276 else 1338 RTPrintf(Appliance::tr( 1339 "%2u: Suggested VM base folder \"%ls\"" 1340 "\n (change with \"--vsys %u --basefolder <path>\")\n"), 1277 RTPrintf(Appliance::tr("%2u: Suggested VM base folder \"%ls\"\n" 1278 " (change with \"--vsys %u --basefolder <path>\")\n"), 1341 1279 a, bstrFinalValue.raw(), i); 1342 1280 break; … … 1350 1288 } 1351 1289 else 1352 RTPrintf(Appliance::tr( 1353 "%2u: Suggested VM group \"%ls\"" 1354 "\n (change with \"--vsys %u --group <group>\")\n"), 1290 RTPrintf(Appliance::tr("%2u: Suggested VM group \"%ls\"\n" 1291 " (change with \"--vsys %u --group <group>\")\n"), 1355 1292 a, bstrFinalValue.raw(), i); 1356 1293 break; … … 1369 1306 } 1370 1307 else 1371 RTPrintf(Appliance::tr( 1372 "%2u: Suggested cloud bucket id \"%ls\"" 1373 "\n (change with \"--cloud %u --cloudbucket <id>\")\n"), 1308 RTPrintf(Appliance::tr("%2u: Suggested cloud bucket id \"%ls\"\n" 1309 " (change with \"--cloud %u --cloudbucket <id>\")\n"), 1374 1310 a, bstrFinalValue.raw(), i); 1375 1311 break; … … 1383 1319 } 1384 1320 else 1385 RTPrintf(Appliance::tr( 1386 "%2u: Suggested cloud profile name \"%ls\"" 1387 "\n (change with \"--cloud %u --cloudprofile <id>\")\n"), 1321 RTPrintf(Appliance::tr("%2u: Suggested cloud profile name \"%ls\"\n" 1322 " (change with \"--cloud %u --cloudprofile <id>\")\n"), 1388 1323 a, bstrFinalValue.raw(), i); 1389 1324 break; … … 1397 1332 } 1398 1333 else 1399 RTPrintf(Appliance::tr( 1400 "%2u: Suggested cloud instance id \"%ls\"" 1401 "\n (change with \"--cloud %u --cloudinstanceid <id>\")\n"), 1334 RTPrintf(Appliance::tr("%2u: Suggested cloud instance id \"%ls\"\n" 1335 " (change with \"--cloud %u --cloudinstanceid <id>\")\n"), 1402 1336 a, bstrFinalValue.raw(), i); 1403 1337 break; … … 1583 1517 case 'o': // --output 1584 1518 if (strOutputFile.length()) 1585 return errorSyntax( USAGE_EXPORTAPPLIANCE,Appliance::tr("You can only specify --output once."));1519 return errorSyntax(Appliance::tr("You can only specify --output once.")); 1586 1520 else 1587 1521 strOutputFile = ValueUnion.psz; … … 1617 1551 1618 1552 if (enmApplType != LOCAL) 1619 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1620 Appliance::tr("Option \"%s\" can't be used together with \"--cloud\" option."), 1553 return errorSyntax(Appliance::tr("Option \"%s\" can't be used together with \"--cloud\" option."), 1621 1554 GetState.pDef->pszLong); 1622 1555 if (ValueUnion.u32 == (uint32_t)-1) 1623 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1624 Appliance::tr("Value of option \"%s\" is out of range."), 1556 return errorSyntax(Appliance::tr("Value of option \"%s\" is out of range."), 1625 1557 GetState.pDef->pszLong); 1626 1558 … … 1630 1562 case 'V': // --vmname 1631 1563 if (enmApplType == NOT_SET) 1632 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1633 Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 1564 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys or --cloud option."), 1634 1565 GetState.pDef->pszLong); 1635 1566 mapArgsMapsPerVsys[ulCurVsys]["vmname"] = ValueUnion.psz; … … 1638 1569 case 'p': // --product 1639 1570 if (enmApplType != LOCAL) 1640 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1641 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1571 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1642 1572 GetState.pDef->pszLong); 1643 1573 mapArgsMapsPerVsys[ulCurVsys]["product"] = ValueUnion.psz; … … 1646 1576 case 'P': // --producturl 1647 1577 if (enmApplType != LOCAL) 1648 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1649 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1578 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1650 1579 GetState.pDef->pszLong); 1651 1580 mapArgsMapsPerVsys[ulCurVsys]["producturl"] = ValueUnion.psz; … … 1654 1583 case 'n': // --vendor 1655 1584 if (enmApplType != LOCAL) 1656 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1657 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1585 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1658 1586 GetState.pDef->pszLong); 1659 1587 mapArgsMapsPerVsys[ulCurVsys]["vendor"] = ValueUnion.psz; … … 1662 1590 case 'N': // --vendorurl 1663 1591 if (enmApplType != LOCAL) 1664 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1665 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1592 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1666 1593 GetState.pDef->pszLong); 1667 1594 mapArgsMapsPerVsys[ulCurVsys]["vendorurl"] = ValueUnion.psz; … … 1670 1597 case 'v': // --version 1671 1598 if (enmApplType != LOCAL) 1672 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1673 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1599 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1674 1600 GetState.pDef->pszLong); 1675 1601 mapArgsMapsPerVsys[ulCurVsys]["version"] = ValueUnion.psz; … … 1678 1604 case 'd': // --description 1679 1605 if (enmApplType != LOCAL) 1680 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1681 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1606 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1682 1607 GetState.pDef->pszLong); 1683 1608 mapArgsMapsPerVsys[ulCurVsys]["description"] = ValueUnion.psz; … … 1686 1611 case 'e': // --eula 1687 1612 if (enmApplType != LOCAL) 1688 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1689 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1613 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1690 1614 GetState.pDef->pszLong); 1691 1615 mapArgsMapsPerVsys[ulCurVsys]["eula"] = ValueUnion.psz; … … 1694 1618 case 'E': // --eulafile 1695 1619 if (enmApplType != LOCAL) 1696 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1697 Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1620 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --vsys option."), 1698 1621 GetState.pDef->pszLong); 1699 1622 mapArgsMapsPerVsys[ulCurVsys]["eulafile"] = ValueUnion.psz; … … 1711 1634 1712 1635 if (enmApplType != CLOUD) 1713 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1714 Appliance::tr("Option \"%s\" can't be used together with \"--vsys\" option."), 1636 return errorSyntax(Appliance::tr("Option \"%s\" can't be used together with \"--vsys\" option."), 1715 1637 GetState.pDef->pszLong); 1716 1638 if (ValueUnion.u32 == (uint32_t)-1) 1717 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1718 Appliance::tr("Value of option \"%s\" is out of range."), 1639 return errorSyntax(Appliance::tr("Value of option \"%s\" is out of range."), 1719 1640 GetState.pDef->pszLong); 1720 1641 … … 1725 1646 case 'S': // --cloudshape 1726 1647 if (enmApplType != CLOUD) 1727 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1728 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1648 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1729 1649 GetState.pDef->pszLong); 1730 1650 mapArgsMapsPerVsys[ulCurVsys]["cloudshape"] = ValueUnion.psz; … … 1733 1653 case 'D': // --clouddomain 1734 1654 if (enmApplType != CLOUD) 1735 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1736 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1655 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1737 1656 GetState.pDef->pszLong); 1738 1657 mapArgsMapsPerVsys[ulCurVsys]["clouddomain"] = ValueUnion.psz; … … 1741 1660 case 'R': // --clouddisksize 1742 1661 if (enmApplType != CLOUD) 1743 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1744 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1662 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1745 1663 GetState.pDef->pszLong); 1746 1664 mapArgsMapsPerVsys[ulCurVsys]["clouddisksize"] = ValueUnion.psz; … … 1749 1667 case 'B': // --cloudbucket 1750 1668 if (enmApplType != CLOUD) 1751 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1752 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1669 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1753 1670 GetState.pDef->pszLong); 1754 1671 mapArgsMapsPerVsys[ulCurVsys]["cloudbucket"] = ValueUnion.psz; … … 1757 1674 case 'Q': // --cloudocivcn 1758 1675 if (enmApplType != CLOUD) 1759 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1760 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1676 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1761 1677 GetState.pDef->pszLong); 1762 1678 mapArgsMapsPerVsys[ulCurVsys]["cloudocivcn"] = ValueUnion.psz; … … 1765 1681 case 'A': // --cloudpublicip 1766 1682 if (enmApplType != CLOUD) 1767 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1768 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1683 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1769 1684 GetState.pDef->pszLong); 1770 1685 mapArgsMapsPerVsys[ulCurVsys]["cloudpublicip"] = ValueUnion.psz; … … 1773 1688 case 'i': /* --cloudprivateip */ 1774 1689 if (enmApplType != CLOUD) 1775 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1776 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1690 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1777 1691 GetState.pDef->pszLong); 1778 1692 mapArgsMapsPerVsys[ulCurVsys]["cloudprivateip"] = ValueUnion.psz; … … 1781 1695 case 'F': // --cloudprofile 1782 1696 if (enmApplType != CLOUD) 1783 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1784 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1697 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1785 1698 GetState.pDef->pszLong); 1786 1699 mapArgsMapsPerVsys[ulCurVsys]["cloudprofile"] = ValueUnion.psz; … … 1789 1702 case 'T': // --cloudocisubnet 1790 1703 if (enmApplType != CLOUD) 1791 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1792 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1704 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1793 1705 GetState.pDef->pszLong); 1794 1706 mapArgsMapsPerVsys[ulCurVsys]["cloudocisubnet"] = ValueUnion.psz; … … 1797 1709 case 'K': // --cloudkeepobject 1798 1710 if (enmApplType != CLOUD) 1799 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1800 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1711 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1801 1712 GetState.pDef->pszLong); 1802 1713 mapArgsMapsPerVsys[ulCurVsys]["cloudkeepobject"] = ValueUnion.psz; … … 1805 1716 case 'L': // --cloudlaunchinstance 1806 1717 if (enmApplType != CLOUD) 1807 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1808 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1718 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1809 1719 GetState.pDef->pszLong); 1810 1720 mapArgsMapsPerVsys[ulCurVsys]["cloudlaunchinstance"] = ValueUnion.psz; … … 1813 1723 case 'M': /* --cloudlaunchmode */ 1814 1724 if (enmApplType != CLOUD) 1815 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1816 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1725 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1817 1726 GetState.pDef->pszLong); 1818 1727 mapArgsMapsPerVsys[ulCurVsys]["cloudlaunchmode"] = ValueUnion.psz; … … 1821 1730 case 'I': // --cloudinitscriptpath 1822 1731 if (enmApplType != CLOUD) 1823 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1824 Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1732 return errorSyntax(Appliance::tr("Option \"%s\" requires preceding --cloud option."), 1825 1733 GetState.pDef->pszLong); 1826 1734 mapArgsMapsPerVsys[ulCurVsys]["cloudinitscriptpath"] = ValueUnion.psz; … … 1843 1751 { 1844 1752 if (RT_C_IS_GRAPH(c)) 1845 return errorSyntax( USAGE_EXPORTAPPLIANCE,Appliance::tr("unhandled option: -%c"), c);1753 return errorSyntax(Appliance::tr("unhandled option: -%c"), c); 1846 1754 else 1847 return errorSyntax( USAGE_EXPORTAPPLIANCE,Appliance::tr("unhandled option: %i"), c);1755 return errorSyntax(Appliance::tr("unhandled option: %i"), c); 1848 1756 } 1849 1757 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 1850 return errorSyntax( USAGE_EXPORTAPPLIANCE,Appliance::tr("unknown option: %s"), ValueUnion.psz);1758 return errorSyntax(Appliance::tr("unknown option: %s"), ValueUnion.psz); 1851 1759 else if (ValueUnion.pDef) 1852 return errorSyntax( USAGE_EXPORTAPPLIANCE,"%s: %Rrs", ValueUnion.pDef->pszLong, c);1760 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 1853 1761 else 1854 return errorSyntax( USAGE_EXPORTAPPLIANCE,"%Rrs", c);1762 return errorSyntax("%Rrs", c); 1855 1763 } 1856 1764 … … 1863 1771 1864 1772 if (llMachines.empty()) 1865 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1866 Appliance::tr("At least one machine must be specified with the export command.")); 1773 return errorSyntax(Appliance::tr("At least one machine must be specified with the export command.")); 1867 1774 1868 1775 /* Last check after parsing all arguments */ 1869 1776 if (strOutputFile.isEmpty()) 1870 return errorSyntax( USAGE_EXPORTAPPLIANCE,Appliance::tr("Missing --output argument with export command."));1777 return errorSyntax(Appliance::tr("Missing --output argument with export command.")); 1871 1778 1872 1779 if (enmApplType == NOT_SET) … … 1882 1789 uint32_t ulVsys = it->first; 1883 1790 if (ulVsys >= llMachines.size()) 1884 return errorSyntax(USAGE_EXPORTAPPLIANCE, 1885 Appliance::tr("Invalid index %RI32 with -vsys option; you specified only %zu virtual system(s).", 1791 return errorSyntax(Appliance::tr("Invalid index %RI32 with -vsys option; you specified only %zu virtual system(s).", 1886 1792 "", llMachines.size()), 1887 1793 ulVsys, llMachines.size()); … … 2732 2638 } 2733 2639 else 2734 RTMsgError(Appliance::tr( 2735 "Encountered a problem when validating the signature we just created: %Rrc%#RTeim\n" 2736 "Plase make sure the certificate and private key matches."), 2640 RTMsgError(Appliance::tr("Encountered a problem when validating the signature we just created: %Rrc%#RTeim\n" 2641 "Please make sure the certificate and private key matches."), 2737 2642 rc, &pErrInfo->Core); 2738 2643 }
Note:
See TracChangeset
for help on using the changeset viewer.