VirtualBox

Changeset 94200 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 12, 2022 7:24:38 PM (3 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94199 r94200  
    198198    { "clonevm",            USAGE_S_NEWCMD,      HELP_CMD_CLONEVM, handleCloneVM,              0 },
    199199    { "movevm",             USAGE_S_NEWCMD,       HELP_CMD_MOVEVM, handleMoveVM,               0 },
    200     { "mediumproperty",     USAGE_MEDIUMPROPERTY,   VBMG_CMD_TODO, handleMediumProperty,       0 },
    201     { "hdproperty",         USAGE_MEDIUMPROPERTY,   VBMG_CMD_TODO, handleMediumProperty,       0 }, /* backward compatibility */
     200    { "mediumproperty",     USAGE_S_NEWCMD,HELP_CMD_MEDIUMPROPERTY, handleMediumProperty,       0 },
     201    { "hdproperty",         USAGE_S_NEWCMD,HELP_CMD_MEDIUMPROPERTY, handleMediumProperty,       0 }, /* backward compatibility */
    202202    { "createmedium",       USAGE_S_NEWCMD, HELP_CMD_CREATEMEDIUM, handleCreateMedium,         0 },
    203203    { "createhd",           USAGE_S_NEWCMD, HELP_CMD_CREATEMEDIUM, handleCreateMedium,         0 }, /* backward compatibility */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94199 r94200  
    132132    USAGE_I_REPAIRHD,
    133133    USAGE_NATNETWORK,
    134     USAGE_MEDIUMPROPERTY,
    135134    USAGE_ENCRYPTMEDIUM,
    136135    USAGE_MEDIUMENCCHKPWD,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r94199 r94200  
    18971897
    18981898    if (a->argc == 0)
    1899         return errorSyntax(USAGE_MEDIUMPROPERTY, Disk::tr("Missing action"));
     1899        return errorSyntax(Disk::tr("Missing action"));
    19001900
    19011901    pszAction = a->argv[0];
     
    19031903        && RTStrICmp(pszAction, "get")
    19041904        && RTStrICmp(pszAction, "delete"))
    1905         return errorSyntax(USAGE_MEDIUMPROPERTY, Disk::tr("Invalid action given: %s"), pszAction);
     1905        return errorSyntax(Disk::tr("Invalid action given: %s"), pszAction);
    19061906
    19071907    if (   (   !RTStrICmp(pszAction, "set")
     
    19091909        || (   RTStrICmp(pszAction, "set")
    19101910            && a->argc != 3))
    1911         return errorSyntax(USAGE_MEDIUMPROPERTY, Disk::tr("Invalid number of arguments given for action: %s"), pszAction);
     1911        return errorSyntax(Disk::tr("Invalid number of arguments given for action: %s"), pszAction);
    19121912
    19131913    pszFilenameOrUuid = a->argv[1];
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94199 r94200  
    639639                     "\n", SEP);
    640640
    641     if (enmCommand == USAGE_MEDIUMPROPERTY || enmCommand == USAGE_S_ALL)
    642         RTStrmPrintf(pStrm,
    643                            "%s mediumproperty %s  [disk|dvd|floppy] set <uuid|filename>\n"
    644                      "                            <property> <value>\n"
    645                      "\n"
    646                      "                            [disk|dvd|floppy] get <uuid|filename>\n"
    647                      "                            <property>\n"
    648                      "\n"
    649                      "                            [disk|dvd|floppy] delete <uuid|filename>\n"
    650                      "                            <property>\n"
    651                      "\n", SEP);
    652 
    653641    if (enmCommand == USAGE_ENCRYPTMEDIUM || enmCommand == USAGE_S_ALL)
    654642        RTStrmPrintf(pStrm,
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