VirtualBox

Ignore:
Timestamp:
Apr 15, 2010 3:02:36 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60131
Message:

NetworkServices: branding and cosmetical fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.cpp

    r27901 r28371  
    4747#include <VBox/intnet.h>
    4848#include <VBox/vmm.h>
     49#include <VBox/version.h>
    4950
    5051#include <vector>
     
    175176            case 'V':
    176177                RTPrintf("%sr%u\n", RTBldCfgVersion(), RTBldCfgRevision());
    177                 return 0;
     178                return 1;
    178179
    179180            case 'h':
    180181                RTPrintf("VBoxNetDHCP Version %s\n"
    181                          "(C) 2009 Sun Microsystems, Inc.\n"
    182                          "All rights reserved\n"
     182                         "(C) 2009-" VBOX_C_YEAR " " VBOX_VENDOR "\n"
     183                         "All rights reserved.\n"
    183184                         "\n"
    184185                         "Usage: VBoxNetDHCP <options>\n"
     
    191192                return 1;
    192193
    193             case VERR_GETOPT_UNKNOWN_OPTION:
    194             case VINF_GETOPT_NOT_OPTION:
    195                 RTPrintf("Unknown option '%s'. Use --help for more information.\n", Val.psz);
    196                 return 1;
    197 
    198194            default:
    199                 break;
     195                rc = RTGetOptPrintError(rc, &Val);
     196                RTPrintf("Use --help for more information.\n");
     197                return rc;
    200198        }
    201199    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette