VirtualBox

Changeset 17980 in vbox


Ignore:
Timestamp:
Mar 16, 2009 8:41:00 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44564
Message:

Frontend/VBoxManage: fix a bunch of silly bugs creeping into command line parsing change.

File:
1 edited

Legend:

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

    r17978 r17980  
    483483                else
    484484                    return errorSyntax(USAGE_CLONEHD, "Invalid parameter '%s'", ValueUnion.psz);
     485                break;
    485486
    486487            default:
     
    601602    RTGETOPTSTATE GetState;
    602603    // start at 0 because main() has hacked both the argc and argv given to us
    603     RTGetOptInit(&GetState, argc, argv, g_aCloneHardDiskOptions, RT_ELEMENTS(g_aCloneHardDiskOptions), 0, 0 /* fFlags */);
     604    RTGetOptInit(&GetState, argc, argv, g_aConvertFromRawHardDiskOptions, RT_ELEMENTS(g_aConvertFromRawHardDiskOptions), 0, 0 /* fFlags */);
    604605    while ((c = RTGetOpt(&GetState, &ValueUnion)))
    605606    {
     
    633634                else
    634635                    return errorSyntax(USAGE_CONVERTFROMRAW, "Invalid parameter '%s'", ValueUnion.psz);
     636                break;
    635637
    636638            default:
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