VirtualBox

Changeset 94177 in vbox for trunk


Ignore:
Timestamp:
Mar 11, 2022 3:26:05 PM (3 years ago)
Author:
vboxsync
Message:

doc/manual,FE/VBoxManage: Convert closemedium command to refentry documentation, bugref:9186

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Config.kmk

    r94172 r94177  
    6363        man_VBoxManage-updatecheck.xml \
    6464        man_VBoxManage-discardstate.xml \
    65         man_VBoxManage-adoptstate.xml
     65        man_VBoxManage-adoptstate.xml \
     66        man_VBoxManage-closemedium.xml
    6667
    6768## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-closemedium.xml

    r87075 r94177  
    2020<refentry id="vboxmanage-closemedium" lang="en">
    2121  <refentryinfo>
    22     <pubdate>August 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage closemedium</title>
    2424  </refentryinfo>
     
    3232    <refname>VBoxManage-closemedium</refname>
    3333    <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>
    3535  </refnamediv>
    3636
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r94172 r94177  
    343343  <xi:include href="user_man_VBoxManage-snapshot.xml"       xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    344344
    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] &lt;uuid|filename&gt;
    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" />
    364346
    365347  <sect1 id="vboxmanage-storageattach">
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94172 r94177  
    219219    { "adoptstate",         USAGE_S_NEWCMD,   HELP_CMD_ADOPTSTATE, handleAdoptState,           0 },
    220220    { "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 },
    222222    { "storageattach",      USAGE_STORAGEATTACH,    VBMG_CMD_TODO, handleStorageAttach,        0 },
    223223    { "storagectl",         USAGE_STORAGECONTROLLER,VBMG_CMD_TODO, handleStorageController,    0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94172 r94177  
    9898{
    9999    USAGE_INVALID = 0,
    100     USAGE_CLOSEMEDIUM,
    101100    USAGE_SHOWMEDIUMINFO,
    102101    USAGE_CREATEMEDIUM,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r93115 r94177  
    17721772            case 'd':   // disk
    17731773                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);
    17751775                cmd = CMD_DISK;
    17761776                break;
     
    17781778            case 'D':   // DVD
    17791779                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);
    17811781                cmd = CMD_DVD;
    17821782                break;
     
    17841784            case 'f':   // floppy
    17851785                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);
    17871787                cmd = CMD_FLOPPY;
    17881788                break;
     
    17961796                    pszFilenameOrUuid = ValueUnion.psz;
    17971797                else
    1798                     return errorSyntax(USAGE_CLOSEMEDIUM, Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
     1798                    return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
    17991799                break;
    18001800
     
    18031803                {
    18041804                    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);
    18061806                    else
    1807                         return errorSyntax(USAGE_CLOSEMEDIUM, Disk::tr("Invalid option case %i"), c);
     1807                        return errorSyntax(Disk::tr("Invalid option case %i"), c);
    18081808                }
    18091809                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);
    18111811                else if (ValueUnion.pDef)
    1812                     return errorSyntax(USAGE_CLOSEMEDIUM, "%s: %Rrs", ValueUnion.pDef->pszLong, c);
     1812                    return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c);
    18131813                else
    1814                     return errorSyntax(USAGE_CLOSEMEDIUM, Disk::tr("error: %Rrs"), c);
     1814                    return errorSyntax(Disk::tr("error: %Rrs"), c);
    18151815        }
    18161816    }
     
    18201820        cmd = CMD_DISK;
    18211821    if (!pszFilenameOrUuid)
    1822         return errorSyntax(USAGE_CLOSEMEDIUM, Disk::tr("Medium name or UUID required"));
     1822        return errorSyntax(Disk::tr("Medium name or UUID required"));
    18231823
    18241824    ComPtr<IMedium> pMedium;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94172 r94177  
    591591
    592592#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);
    599593
    600594    if (enmCommand == USAGE_STORAGEATTACH || enmCommand == USAGE_S_ALL)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette