VirtualBox

Changeset 26517 in vbox for trunk/src/VBox/Main/xpcom


Ignore:
Timestamp:
Feb 14, 2010 9:39:00 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57688
Message:

*: RTGetOpt cleanup related to --help and --version (now standard option). Use RTGetOptPrintError.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xpcom/server.cpp

    r26186 r26517  
    3939#include <VBox/version.h>
    4040
     41#include <iprt/buildconfig.h>
    4142#include <iprt/initterm.h>
    4243#include <iprt/critsect.h>
     
    798799            }
    799800
     801            case 'h':
     802            {
     803                RTPrintf("no help\n");
     804                return 1;
     805            }
     806
     807            case 'V':
     808            {
     809                RTPrintf("%sr%s\n", RTBldCfgVersion(), RTBldCfgRevisionStr());
     810                return 0;
     811            }
     812
    800813            default:
    801814                return RTGetOptPrintError(vrc, &ValueUnion);
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