VirtualBox

Changeset 94171 in vbox for trunk


Ignore:
Timestamp:
Mar 11, 2022 2:15:12 PM (3 years ago)
Author:
vboxsync
Message:

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

Location:
trunk
Files:
7 edited

Legend:

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

    r93813 r94171  
    6161        man_VBoxManage-modifynvram.xml \
    6262        man_VBoxManage-hostonlynet.xml \
    63         man_VBoxManage-updatecheck.xml
     63        man_VBoxManage-updatecheck.xml \
     64        man_VBoxManage-discardstate.xml
    6465
    6566## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-discardstate.xml

    r82969 r94171  
    2020<refentry id="vboxmanage-discardstate" lang="en">
    2121  <refentryinfo>
    22     <pubdate>August 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage discardstate</title>
    2424  </refentryinfo>
     
    3232    <refname>VBoxManage-discardstate</refname>
    3333    <refpurpose>discard the saved state of a virtual machine</refpurpose>
    34     <refclass>Oracle VM VirtualBox</refclass>
     34    <refclass>&product-name;</refclass>
    3535  </refnamediv>
    3636
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r93804 r94171  
    337337  <xi:include href="user_man_VBoxManage-unattended.xml"     xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    338338
    339   <sect1 id="vboxmanage-discardstate">
    340 
    341     <title>VBoxManage discardstate</title>
    342 
    343     <para>
    344       This command discards the saved state of a virtual machine which
    345       is not currently running. This will cause the VM's operating
    346       system to restart next time you start it. This is the equivalent
    347       of pulling out the power cable on a physical machine, and should
    348       be avoided if possible.
    349     </para>
    350 
    351   </sect1>
     339  <xi:include href="user_man_VBoxManage-discardstate.xml"   xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    352340
    353341  <sect1 id="vboxmanage-adoptstate">
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r93708 r94171  
    216216    { "controlvm",          USAGE_S_NEWCMD,    HELP_CMD_CONTROLVM, handleControlVM,            0 },
    217217    { "unattended",         USAGE_S_NEWCMD,   HELP_CMD_UNATTENDED, handleUnattended,           0 },
    218     { "discardstate",       USAGE_DISCARDSTATE,     VBMG_CMD_TODO, handleDiscardState,         0 },
     218    { "discardstate",       USAGE_S_NEWCMD, HELP_CMD_DISCARDSTATE, handleDiscardState,         0 },
    219219    { "adoptstate",         USAGE_ADOPTSTATE,       VBMG_CMD_TODO, handleAdoptState,           0 },
    220220    { "snapshot",           USAGE_S_NEWCMD,     HELP_CMD_SNAPSHOT, handleSnapshot,             0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r93708 r94171  
    9898{
    9999    USAGE_INVALID = 0,
    100     USAGE_DISCARDSTATE,
    101100    USAGE_CLOSEMEDIUM,
    102101    USAGE_SHOWMEDIUMINFO,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r93708 r94171  
    591591
    592592#define SEP pcszSep1, pcszSep2
    593 
    594     if (enmCommand == USAGE_DISCARDSTATE || enmCommand == USAGE_S_ALL)
    595         RTStrmPrintf(pStrm,
    596                            "%s discardstate %s    <uuid|vmname>\n"
    597                      "\n", SEP);
    598593
    599594    if (enmCommand == USAGE_ADOPTSTATE || enmCommand == USAGE_S_ALL)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r93708 r94171  
    760760
    761761    if (a->argc != 1)
    762         return errorSyntax(USAGE_DISCARDSTATE, Misc::tr("Incorrect number of parameters"));
     762        return errorSyntax(Misc::tr("Incorrect number of parameters"));
    763763
    764764    ComPtr<IMachine> machine;
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