VirtualBox

Changeset 11105 in vbox for trunk/src/VBox/Additions


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

File:
1 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)
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