VirtualBox

Ignore:
Timestamp:
Mar 26, 2019 4:41:15 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129592
Message:

manual/VBoxManage: Made the new clonevm build. Again, there must be '=' between an option name and its value. The help-scope in the example section is not needed for commands without sub-commands. Use 'vmname|uuid' rather than just 'vm' as it's easier to grasp when just seeing the command synopsis.

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

Legend:

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

    r77883 r77887  
    103103    { "registervm",         USAGE_REGISTERVM,       VBMG_CMD_TODO, handleRegisterVM,           0 },
    104104    { "unregistervm",       USAGE_UNREGISTERVM,     VBMG_CMD_TODO, handleUnregisterVM,         0 },
    105     { "clonevm",            USAGE_CLONEVM,          VBMG_CMD_TODO, handleCloneVM,              0 },
     105    { "clonevm",            USAGE_S_NEWCMD,      HELP_CMD_CLONEVM, handleCloneVM,              0 },
    106106    { "movevm",             USAGE_MOVEVM,           VBMG_CMD_TODO, handleMoveVM,               0 },
    107107    { "mediumproperty",     USAGE_MEDIUMPROPERTY,   VBMG_CMD_TODO, handleMediumProperty,       0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r77883 r77887  
    5757    USAGE_CREATEVM,
    5858    USAGE_MODIFYVM,
    59     USAGE_CLONEVM,
    6059    USAGE_STARTVM,
    6160    USAGE_CONTROLVM,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r77801 r77887  
    733733                     "\n");
    734734    }
    735 
    736     if (enmCommand == USAGE_CLONEVM || enmCommand == USAGE_S_ALL)
    737         RTStrmPrintf(pStrm,
    738                            "%s clonevm %s         <uuid|vmname>\n"
    739                      "                            [--snapshot <uuid>|<name>]\n"
    740                      "                            [--mode machine|machineandchildren|all]\n"
    741                      "                            [--options link|keepallmacs|keepnatmacs|\n"
    742                      "                                       keepdisknames|keephwuuids]\n"
    743                      "                            [--name <name>]\n"
    744                      "                            [--groups <group>, ...]\n"
    745                      "                            [--basefolder <basefolder>]\n"
    746                      "                            [--uuid <uuid>]\n"
    747                      "                            [--register]\n"
    748                      "\n", SEP);
    749735
    750736    if (enmCommand == USAGE_MOVEVM || enmCommand == USAGE_S_ALL)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r77877 r77887  
    541541                    pszSrcName = ValueUnion.psz;
    542542                else
    543                     return errorSyntax(USAGE_CLONEVM, "Invalid parameter '%s'", ValueUnion.psz);
     543                    return errorSyntax("Invalid parameter '%s'", ValueUnion.psz);
    544544                break;
    545545
    546546            default:
    547                 return errorGetOpt(USAGE_CLONEVM, c, &ValueUnion);
     547                return errorGetOpt(c, &ValueUnion);
    548548        }
    549549    }
     
    551551    /* Check for required options */
    552552    if (!pszSrcName)
    553         return errorSyntax(USAGE_CLONEVM, "VM name required");
     553        return errorSyntax("VM name required");
    554554
    555555    /* Get the machine object */
Note: See TracChangeset for help on using the changeset viewer.

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