VirtualBox

Changeset 71120 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Feb 26, 2018 10:31:13 AM (7 years ago)
Author:
vboxsync
Message:

VBoxService/Toolbox: Print the toolbox' syntax help and return with RTEXITCODE_SYNTAX if no / wrong tool name is specified.

File:
1 edited

Legend:

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

    r69753 r71120  
    15961596         * when the first VBoxService argument is --use-toolbox.
    15971597         */
    1598         if (argc < 3 || strcmp(argv[1], "--use-toolbox"))
     1598        if (argc < 2 || strcmp(argv[1], "--use-toolbox"))
    15991599            return false;
     1600
     1601        /* No tool specified? Show toolbox help. */
     1602        if (argc < 3)
     1603        {
     1604            vgsvcToolboxShowUsage();
     1605            *prcExit = RTEXITCODE_SYNTAX;
     1606            return true;
     1607        }
     1608
    16001609        argc -= 2;
    16011610        argv += 2;
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