VirtualBox

Changeset 11105 in vbox for trunk


Ignore:
Timestamp:
Aug 4, 2008 2:40:46 PM (16 years ago)
Author:
vboxsync
Message:

FE/VBoxManage, Additions/VBoxControl: guestproperty set with flags but without a value is not allowed

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r11104 r11105  
    107107    {
    108108        doUsage("get <property> [-verbose]\n", g_pszProgName, "guestproperty");
    109         doUsage("set <property> [<value>] [-flags <flags>]\n", g_pszProgName, "guestproperty");
     109        doUsage("set <property> [<value> [-flags <flags>]]\n", g_pszProgName, "guestproperty");
    110110        doUsage("enumerate [-patterns <patterns>]\n", g_pszProgName, "guestproperty");
    111111    }
     
    981981        if (strcmp(argv[1], "-flags") != 0)
    982982            usageOK = false;
    983         pszFlags = argv[2];
     983        else
     984        {
     985            RTPrintf("You may not specify flags without a value");
     986            return 1;
     987        }
    984988    }
    985989    else if (4 == argc)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r11097 r11105  
    4545             "\n");
    4646    RTPrintf("VBoxManage guestproperty    set <vmname>|<uuid>\n"
    47              "                            <property> [<value>] [-flags <flags>]\n"
     47             "                            <property> [<value> [-flags <flags>]]\n"
    4848             "\n");
    4949    RTPrintf("VBoxManage guestproperty    enumerate <vmname>|<uuid>\n"
     
    123123        if (strcmp(argv[2], "-flags") != 0)
    124124            usageOK = false;
    125         pszFlags = argv[3];
     125        else
     126            return errorSyntax(USAGE_GUESTPROPERTY,
     127                               "You may not specify flags without a value");
    126128    }
    127129    else if (5 == argc)
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