Changeset 94199 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 12, 2022 7:18:11 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94198 r94199 206 206 { "modifyhd", USAGE_MODIFYMEDIUM, VBMG_CMD_TODO, handleModifyMedium, 0 }, /* backward compatibility */ 207 207 { "modifyvdi", USAGE_MODIFYMEDIUM, VBMG_CMD_TODO, handleModifyMedium, 0 }, /* backward compatibility */ 208 { "clonemedium", USAGE_ CLONEMEDIUM, VBMG_CMD_TODO, handleCloneMedium, 0 },209 { "clonehd", USAGE_ CLONEMEDIUM, VBMG_CMD_TODO, handleCloneMedium, 0 }, /* backward compatibility */210 { "clonevdi", USAGE_ CLONEMEDIUM, VBMG_CMD_TODO, handleCloneMedium, 0 }, /* backward compatibility */208 { "clonemedium", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, 209 { "clonehd", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 210 { "clonevdi", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 211 211 { "encryptmedium", USAGE_ENCRYPTMEDIUM, VBMG_CMD_TODO, handleEncryptMedium, 0 }, 212 212 { "checkmediumpwd", USAGE_MEDIUMENCCHKPWD, VBMG_CMD_TODO, handleCheckMediumPassword, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94198 r94199 99 99 USAGE_INVALID = 0, 100 100 USAGE_MODIFYMEDIUM, 101 USAGE_CLONEMEDIUM,102 101 USAGE_CREATEHOSTIF, 103 102 USAGE_REMOVEHOSTIF, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r94198 r94199 1025 1025 case 'd': // disk 1026 1026 if (cmd != CMD_NONE) 1027 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1027 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1028 1028 cmd = CMD_DISK; 1029 1029 break; … … 1031 1031 case 'D': // DVD 1032 1032 if (cmd != CMD_NONE) 1033 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1033 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1034 1034 cmd = CMD_DVD; 1035 1035 break; … … 1037 1037 case 'f': // floppy 1038 1038 if (cmd != CMD_NONE) 1039 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1039 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1040 1040 cmd = CMD_FLOPPY; 1041 1041 break; … … 1069 1069 pszDst = ValueUnion.psz; 1070 1070 else 1071 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);1071 return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz); 1072 1072 break; 1073 1073 … … 1076 1076 { 1077 1077 if (RT_C_IS_GRAPH(c)) 1078 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("unhandled option: -%c"), c);1078 return errorSyntax(Disk::tr("unhandled option: -%c"), c); 1079 1079 else 1080 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("unhandled option: %i"), c);1080 return errorSyntax(Disk::tr("unhandled option: %i"), c); 1081 1081 } 1082 1082 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 1083 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("unknown option: %s"), ValueUnion.psz);1083 return errorSyntax(Disk::tr("unknown option: %s"), ValueUnion.psz); 1084 1084 else if (ValueUnion.pDef) 1085 return errorSyntax( USAGE_CLONEMEDIUM,"%s: %Rrs", ValueUnion.pDef->pszLong, c);1085 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 1086 1086 else 1087 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("error: %Rrs"), c);1087 return errorSyntax(Disk::tr("error: %Rrs"), c); 1088 1088 } 1089 1089 } … … 1092 1092 cmd = CMD_DISK; 1093 1093 if (!pszSrc) 1094 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Mandatory UUID or input file parameter missing"));1094 return errorSyntax(Disk::tr("Mandatory UUID or input file parameter missing")); 1095 1095 if (!pszDst) 1096 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Mandatory output file parameter missing"));1096 return errorSyntax(Disk::tr("Mandatory output file parameter missing")); 1097 1097 if (fExisting && (!format.isEmpty() || enmMediumVariant != MediumVariant_Standard)) 1098 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Specified options which cannot be used with --existing"));1098 return errorSyntax(Disk::tr("Specified options which cannot be used with --existing")); 1099 1099 1100 1100 ComPtr<IMedium> pSrcMedium; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94198 r94199 639 639 "\n", SEP); 640 640 641 if (enmCommand == USAGE_CLONEMEDIUM || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s clonemedium %s [disk|dvd|floppy] <uuid|inputfile> <uuid|outputfile>\n"644 " [--format VDI|VMDK|VHD|RAW|<other>]\n"645 " [--variant Standard,Fixed,Split2G,Stream,ESX]\n"646 " [--existing]\n"647 "\n", SEP);648 649 641 if (enmCommand == USAGE_MEDIUMPROPERTY || enmCommand == USAGE_S_ALL) 650 642 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.