VirtualBox

Changeset 44328 in vbox


Ignore:
Timestamp:
Jan 22, 2013 11:05:09 AM (12 years ago)
Author:
vboxsync
Message:

VBoxControl.cpp: Allow unix shell users to use 'unset' instead of 'delete'.

File:
1 edited

Legend:

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

    r44324 r44328  
    104104 * them can fix this. */
    105105#if defined(RT_OS_WINDOWS) && !defined(VBOX_CONTROL_TEST)
    106     if (GET_VIDEO_ACCEL == eWhich || eWhich == USAGE_ALL)
     106    if (eWhich  == GET_VIDEO_ACCEL || eWhich == USAGE_ALL)
    107107        doUsage("", g_pszProgName, "getvideoacceleration");
    108     if (SET_VIDEO_ACCEL == eWhich || eWhich == USAGE_ALL)
     108    if (eWhich  == SET_VIDEO_ACCEL || eWhich == USAGE_ALL)
    109109        doUsage("<on|off>", g_pszProgName, "setvideoacceleration");
    110     if (LIST_CUST_MODES == eWhich || eWhich == USAGE_ALL)
     110    if (eWhich  == LIST_CUST_MODES || eWhich == USAGE_ALL)
    111111        doUsage("", g_pszProgName, "listcustommodes");
    112     if (ADD_CUST_MODE == eWhich || eWhich == USAGE_ALL)
     112    if (eWhich  == ADD_CUST_MODE || eWhich == USAGE_ALL)
    113113        doUsage("<width> <height> <bpp>", g_pszProgName, "addcustommode");
    114     if (REMOVE_CUST_MODE == eWhich || eWhich == USAGE_ALL)
     114    if (eWhich  == REMOVE_CUST_MODE || eWhich == USAGE_ALL)
    115115        doUsage("<width> <height> <bpp>", g_pszProgName, "removecustommode");
    116     if (SET_VIDEO_MODE == eWhich || eWhich == USAGE_ALL)
     116    if (eWhich  == SET_VIDEO_MODE || eWhich == USAGE_ALL)
    117117        doUsage("<width> <height> <bpp> <screen>", g_pszProgName, "setvideomode");
    118118#endif
    119119#ifdef VBOX_WITH_GUEST_PROPS
    120     if (GUEST_PROP == eWhich || eWhich == USAGE_ALL)
     120    if (eWhich == GUEST_PROP || eWhich == USAGE_ALL)
    121121    {
    122122        doUsage("get <property> [--verbose]", g_pszProgName, "guestproperty");
    123123        doUsage("set <property> [<value> [--flags <flags>]]", g_pszProgName, "guestproperty");
    124         doUsage("delete <property>", g_pszProgName, "guestproperty");
     124        doUsage("delete|unset <property>", g_pszProgName, "guestproperty");
    125125        doUsage("enumerate [--patterns <patterns>]", g_pszProgName, "guestproperty");
    126126        doUsage("wait <patterns>", g_pszProgName, "guestproperty");
     
    130130#endif
    131131#ifdef VBOX_WITH_SHARED_FOLDERS
    132     if (GUEST_SHAREDFOLDERS == eWhich || eWhich == USAGE_ALL)
     132    if (eWhich  == GUEST_SHAREDFOLDERS || eWhich == USAGE_ALL)
    133133    {
    134134        doUsage("list [-automount]", g_pszProgName, "sharedfolder");
     
    13581358    else if (!strcmp(argv[0], "set"))
    13591359        return setGuestProperty(argc - 1, argv + 1);
    1360     else if (!strcmp(argv[0], "delete"))
     1360    else if (!strcmp(argv[0], "delete") || !strcmp(argv[0], "unset"))
    13611361        return deleteGuestProperty(argc - 1, argv + 1);
    13621362    else if (!strcmp(argv[0], "enumerate"))
Note: See TracChangeset for help on using the changeset viewer.

© 2023 Oracle
ContactPrivacy policyTerms of Use