VirtualBox

Changeset 18103 in vbox


Ignore:
Timestamp:
Mar 20, 2009 10:00:46 AM (16 years ago)
Author:
vboxsync
Message:

webservice/vboxweb: adapt command line handling to changed RTGetOpt semantics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r18079 r18103  
    3838#include <iprt/initterm.h>
    3939#include <iprt/getopt.h>
     40#include <iprt/ctype.h>
    4041#include <iprt/process.h>
    4142#include <iprt/stream.h>
     
    310311#endif
    311312            case VINF_GETOPT_NOT_OPTION:
    312                 RTStrmPrintf(g_pStdErr, "Unknown option %s\n", ValueUnion.psz);
     313                RTStrmPrintf(g_pStdErr, "unhandled parameter: %s\n", ValueUnion.psz);
    313314            return 1;
    314315
    315316            default:
    316317                if (c > 0)
    317                     RTStrmPrintf(g_pStdErr, "missing case: %c\n", c);
     318                {
     319                    if (RT_C_IS_GRAPH(c))
     320                        RTStrmPrintf(g_pStdErr, "unhandled option: -%c", c);
     321                    else
     322                        RTStrmPrintf(g_pStdErr, "unhandled option: %i", c);
     323                }
     324                else if (c == VERR_GETOPT_UNKNOWN_OPTION)
     325                    RTStrmPrintf(g_pStdErr, "unknown option: %s", ValueUnion.psz);
    318326                else if (ValueUnion.pDef)
    319327                    RTStrmPrintf(g_pStdErr, "%s: %Rrs", ValueUnion.pDef->pszLong, c);
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