VirtualBox

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


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

doc/manual,FE/VBoxManage: Convert encryptmedium 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

    r94200 r94201  
    209209    { "clonehd",            USAGE_S_NEWCMD,  HELP_CMD_CLONEMEDIUM, handleCloneMedium,          0 }, /* backward compatibility */
    210210    { "clonevdi",           USAGE_S_NEWCMD,  HELP_CMD_CLONEMEDIUM, handleCloneMedium,          0 }, /* backward compatibility */
    211     { "encryptmedium",      USAGE_ENCRYPTMEDIUM,    VBMG_CMD_TODO, handleEncryptMedium,        0 },
     211    { "encryptmedium",      USAGE_S_NEWCMD,HELP_CMD_ENCRYPTMEDIUM, handleEncryptMedium,        0 },
    212212    { "checkmediumpwd",     USAGE_MEDIUMENCCHKPWD,  VBMG_CMD_TODO, handleCheckMediumPassword,  0 },
    213213    { "createvm",           USAGE_S_NEWCMD,     HELP_CMD_CREATEVM, handleCreateVM,             0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

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

    r94200 r94201  
    20082008                    pszFilenameOrUuid = ValueUnion.psz;
    20092009                else
    2010                     return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
     2010                    return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
    20112011                break;
    20122012
     
    20152015                {
    20162016                    if (RT_C_IS_PRINT(c))
    2017                         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Invalid option -%c"), c);
     2017                        return errorSyntax(Disk::tr("Invalid option -%c"), c);
    20182018                    else
    2019                         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Invalid option case %i"), c);
     2019                        return errorSyntax(Disk::tr("Invalid option case %i"), c);
    20202020                }
    20212021                else if (c == VERR_GETOPT_UNKNOWN_OPTION)
    2022                     return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("unknown option: %s\n"), ValueUnion.psz);
     2022                    return errorSyntax(Disk::tr("unknown option: %s\n"), ValueUnion.psz);
    20232023                else if (ValueUnion.pDef)
    2024                     return errorSyntax(USAGE_ENCRYPTMEDIUM, "%s: %Rrs", ValueUnion.pDef->pszLong, c);
     2024                    return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c);
    20252025                else
    2026                     return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("error: %Rrs"), c);
     2026                    return errorSyntax(Disk::tr("error: %Rrs"), c);
    20272027        }
    20282028    }
    20292029
    20302030    if (!pszFilenameOrUuid)
    2031         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Disk name or UUID required"));
     2031        return errorSyntax(Disk::tr("Disk name or UUID required"));
    20322032
    20332033    if (!pszPasswordNew && !pszPasswordOld)
    2034         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("No password specified"));
     2034        return errorSyntax(Disk::tr("No password specified"));
    20352035
    20362036    if (   (pszPasswordNew && !pszNewPasswordId)
    20372037        || (!pszPasswordNew && pszNewPasswordId))
    2038         return errorSyntax(USAGE_ENCRYPTMEDIUM,
    2039                            Disk::tr("A new password must always have a valid identifier set at the same time"));
     2038        return errorSyntax(Disk::tr("A new password must always have a valid identifier set at the same time"));
    20402039
    20412040    if (pszPasswordNew)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94200 r94201  
    639639                     "\n", SEP);
    640640
    641     if (enmCommand == USAGE_ENCRYPTMEDIUM || enmCommand == USAGE_S_ALL)
    642         RTStrmPrintf(pStrm,
    643                            "%s encryptmedium %s   <uuid|filename>\n"
    644                      "                            [--newpassword <file>|-]\n"
    645                      "                            [--oldpassword <file>|-]\n"
    646                      "                            [--cipher <cipher identifier>]\n"
    647                      "                            [--newpasswordid <password identifier>]\n"
    648                      "\n", SEP);
    649 
    650641    if (enmCommand == USAGE_MEDIUMENCCHKPWD || enmCommand == USAGE_S_ALL)
    651642        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