Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70079 - trunk/libs/program_options/example
From: ghost_at_[hidden]
Date: 2011-03-17 17:25:16


Author: vladimir_prus
Date: 2011-03-17 17:25:16 EDT (Thu, 17 Mar 2011)
New Revision: 70079
URL: http://svn.boost.org/trac/boost/changeset/70079

Log:
Return 0, not 1, when --help is passed.
Fixes #5329.

Text files modified:
   trunk/libs/program_options/example/first.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/program_options/example/first.cpp
==============================================================================
--- trunk/libs/program_options/example/first.cpp (original)
+++ trunk/libs/program_options/example/first.cpp 2011-03-17 17:25:16 EDT (Thu, 17 Mar 2011)
@@ -29,7 +29,7 @@
 
         if (vm.count("help")) {
             cout << desc << "\n";
- return 1;
+ return 0;
         }
 
         if (vm.count("compression")) {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk