VirtualBox

Changeset 47325 in vbox for trunk/src


Ignore:
Timestamp:
Jul 22, 2013 7:24:08 PM (11 years ago)
Author:
vboxsync
Message:

VBoxManage/VBoxManageGuestCtrl: Optional shorter list command options.

File:
1 edited

Legend:

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

    r47311 r47325  
    27932793    RTEXITCODE rcExit = RTEXITCODE_SUCCESS;
    27942794
     2795    /** Use RTGetOpt here when handling command line args gets more complex. */
     2796
    27952797    bool fListAll = false;
    27962798    bool fListSessions = false;
    27972799    bool fListProcesses = false;
    2798     if (!RTStrICmp(pArg->argv[0], "sessions"))
     2800    if (   !RTStrICmp(pArg->argv[0], "sessions")
     2801        || !RTStrICmp(pArg->argv[0], "sess"))
    27992802        fListSessions = true;
    2800     else if (!RTStrICmp(pArg->argv[0], "processes"))
     2803    else if (   !RTStrICmp(pArg->argv[0], "processes")
     2804             || !RTStrICmp(pArg->argv[0], "procs"))
    28012805        fListSessions = fListProcesses = true; /* Showing processes implies showing sessions. */
    28022806    else if (!RTStrICmp(pArg->argv[0], "all"))
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