- Timestamp:
- Mar 11, 2022 3:26:05 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r94172 r94177 63 63 man_VBoxManage-updatecheck.xml \ 64 64 man_VBoxManage-discardstate.xml \ 65 man_VBoxManage-adoptstate.xml 65 man_VBoxManage-adoptstate.xml \ 66 man_VBoxManage-closemedium.xml 66 67 67 68 ## List of user manual XML files. -
trunk/doc/manual/en_US/man_VBoxManage-closemedium.xml
r87075 r94177 20 20 <refentry id="vboxmanage-closemedium" lang="en"> 21 21 <refentryinfo> 22 <pubdate> August 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage closemedium</title> 24 24 </refentryinfo> … … 32 32 <refname>VBoxManage-closemedium</refname> 33 33 <refpurpose>remove a hard disk, DVD, or floppy image from the media registry</refpurpose> 34 <refclass> Oracle VM VirtualBox</refclass>34 <refclass>&product-name;</refclass> 35 35 </refnamediv> 36 36 -
trunk/doc/manual/en_US/user_VBoxManage.xml
r94172 r94177 343 343 <xi:include href="user_man_VBoxManage-snapshot.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 344 344 345 <sect1 id="vboxmanage-closemedium"> 346 347 <title>VBoxManage closemedium</title> 348 349 <para> 350 This command removes a hard disk, DVD, or floppy image from a 351 &product-name; media registry. 352 </para> 353 354 <screen>VBoxManage closemedium [disk|dvd|floppy] <uuid|filename> 355 [--delete]</screen> 356 357 <para> 358 Optionally, you can request that the image be deleted. You will 359 get appropriate diagnostics that the deletion failed, however the 360 image will become unregistered in any case. 361 </para> 362 363 </sect1> 345 <xi:include href="user_man_VBoxManage-closemedium.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 364 346 365 347 <sect1 id="vboxmanage-storageattach"> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94172 r94177 219 219 { "adoptstate", USAGE_S_NEWCMD, HELP_CMD_ADOPTSTATE, handleAdoptState, 0 }, 220 220 { "snapshot", USAGE_S_NEWCMD, HELP_CMD_SNAPSHOT, handleSnapshot, 0 }, 221 { "closemedium", USAGE_ CLOSEMEDIUM, VBMG_CMD_TODO, handleCloseMedium, 0 },221 { "closemedium", USAGE_S_NEWCMD, HELP_CMD_CLOSEMEDIUM, handleCloseMedium, 0 }, 222 222 { "storageattach", USAGE_STORAGEATTACH, VBMG_CMD_TODO, handleStorageAttach, 0 }, 223 223 { "storagectl", USAGE_STORAGECONTROLLER,VBMG_CMD_TODO, handleStorageController, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94172 r94177 98 98 { 99 99 USAGE_INVALID = 0, 100 USAGE_CLOSEMEDIUM,101 100 USAGE_SHOWMEDIUMINFO, 102 101 USAGE_CREATEMEDIUM, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r93115 r94177 1772 1772 case 'd': // disk 1773 1773 if (cmd != CMD_NONE) 1774 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1774 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1775 1775 cmd = CMD_DISK; 1776 1776 break; … … 1778 1778 case 'D': // DVD 1779 1779 if (cmd != CMD_NONE) 1780 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1780 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1781 1781 cmd = CMD_DVD; 1782 1782 break; … … 1784 1784 case 'f': // floppy 1785 1785 if (cmd != CMD_NONE) 1786 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1786 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1787 1787 cmd = CMD_FLOPPY; 1788 1788 break; … … 1796 1796 pszFilenameOrUuid = ValueUnion.psz; 1797 1797 else 1798 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);1798 return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz); 1799 1799 break; 1800 1800 … … 1803 1803 { 1804 1804 if (RT_C_IS_PRINT(c)) 1805 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Invalid option -%c"), c);1805 return errorSyntax(Disk::tr("Invalid option -%c"), c); 1806 1806 else 1807 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Invalid option case %i"), c);1807 return errorSyntax(Disk::tr("Invalid option case %i"), c); 1808 1808 } 1809 1809 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 1810 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("unknown option: %s\n"), ValueUnion.psz);1810 return errorSyntax(Disk::tr("unknown option: %s\n"), ValueUnion.psz); 1811 1811 else if (ValueUnion.pDef) 1812 return errorSyntax( USAGE_CLOSEMEDIUM,"%s: %Rrs", ValueUnion.pDef->pszLong, c);1812 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 1813 1813 else 1814 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("error: %Rrs"), c);1814 return errorSyntax(Disk::tr("error: %Rrs"), c); 1815 1815 } 1816 1816 } … … 1820 1820 cmd = CMD_DISK; 1821 1821 if (!pszFilenameOrUuid) 1822 return errorSyntax( USAGE_CLOSEMEDIUM,Disk::tr("Medium name or UUID required"));1822 return errorSyntax(Disk::tr("Medium name or UUID required")); 1823 1823 1824 1824 ComPtr<IMedium> pMedium; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94172 r94177 591 591 592 592 #define SEP pcszSep1, pcszSep2 593 594 if (enmCommand == USAGE_CLOSEMEDIUM || enmCommand == USAGE_S_ALL)595 RTStrmPrintf(pStrm,596 "%s closemedium %s [disk|dvd|floppy] <uuid|filename>\n"597 " [--delete]\n"598 "\n", SEP);599 593 600 594 if (enmCommand == USAGE_STORAGEATTACH || enmCommand == USAGE_S_ALL)
Note:
See TracChangeset
for help on using the changeset viewer.