VirtualBox

Changeset 8926 in vbox


Ignore:
Timestamp:
May 19, 2008 5:41:44 PM (17 years ago)
Author:
vboxsync
Message:

Don't return VERR_GETOP_UNKNOWN_OPTION when encountering a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r8245 r8926  
    5555    if (*pszArgThis == '-')
    5656    {
     57/** @todo implement '--'. */
    5758        for (size_t i = 0; i < cOptions; i++)
    5859        {
     
    191192            }
    192193        }
     194
     195
     196        return VERR_GETOPT_UNKNOWN_OPTION;
    193197    }
    194198
     199    /*
     200     * Not an option.
     201     */
    195202    /** @todo Sort options and arguments (i.e. stuff that doesn't start with '-'), stop when
    196203     * encountering the first argument. */
    197204
    198     return VERR_GETOPT_UNKNOWN_OPTION;
     205    return 0;
    199206}
    200207
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