Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2008-07-12 05:03:19


Author: vladimir_prus
Date: 2008-07-12 05:03:18 EDT (Sat, 12 Jul 2008)
New Revision: 47336
URL: http://svn.boost.org/trac/boost/changeset/47336

Log:
Merge from trunk. No code changes, only properties and docs and examples
Properties modified:
   branches/release/libs/program_options/doc/alternatives (props changed)
   branches/release/libs/program_options/doc/glossary.dox (props changed)
   branches/release/libs/program_options/doc/program_options.dox (props changed)
   branches/release/libs/program_options/doc/program_options.ent (props changed)
   branches/release/libs/program_options/doc/questions (props changed)
   branches/release/libs/program_options/doc/questions.dox (props changed)
   branches/release/libs/program_options/doc/rationale (props changed)
   branches/release/libs/program_options/doc/rationale.dox (props changed)
   branches/release/libs/program_options/doc/recipes.dox (props changed)
   branches/release/libs/program_options/doc/requirements-Rozental (props changed)
   branches/release/libs/program_options/example/multiple_sources.cfg (props changed)
   branches/release/libs/program_options/example/response_file.rsp (props changed)
Text files modified:
   branches/release/libs/program_options/doc/overview.xml | 16 +++++++---------
   branches/release/libs/program_options/example/first.cpp | 13 +++----------
   branches/release/libs/program_options/example/options_description.cpp | 2 +-
   3 files changed, 11 insertions(+), 20 deletions(-)

Modified: branches/release/libs/program_options/doc/overview.xml
==============================================================================
--- branches/release/libs/program_options/doc/overview.xml (original)
+++ branches/release/libs/program_options/doc/overview.xml 2008-07-12 05:03:18 EDT (Sat, 12 Jul 2008)
@@ -185,16 +185,14 @@
     ("email", value<string>()->multitoken(), "email to send to")
     ;
       </programlisting>
- For the first option (<literal>help</literal>), we specify only the name
- and the description. No value can be specified in the parsed source.
- For the second option (<literal>compression</literal>), the user must
- specify a value, using a single token. For the third option
- (<literal>verbose</literal>), the user may either provide a single token
- for the value, or no token at all. For the last option
- (<literal>email</literal>), the value can span several tokens. For
- example, the following command line is OK:
+ For the first parameter, we specify only the name and the
+ description. No value can be specified in the parsed source.
+ For the first option, the user must specify a value, using a single
+ token. For the third option, the user may either provide a single token
+ for the value, or no token at all. For the last option, the value can
+ span several tokens. For example, the following command line is OK:
       <screen>
- test --help --compression 10 --verbose --email beagle_at_mars beagle2_at_mars
+ test --help --compression 10 --verbose --email beadle_at_mars beadle2_at_mars
       </screen>
       </para>
 

Modified: branches/release/libs/program_options/example/first.cpp
==============================================================================
--- branches/release/libs/program_options/example/first.cpp (original)
+++ branches/release/libs/program_options/example/first.cpp 2008-07-12 05:03:18 EDT (Sat, 12 Jul 2008)
@@ -21,12 +21,11 @@
         desc.add_options()
             ("help", "produce help message")
             ("compression", po::value<int>(), "set compression level")
- ("verbose", po::value<string>()->zero_tokens()->implicit_value(""))
         ;
 
- po::variables_map vm;
+ po::variables_map vm;
         po::store(po::parse_command_line(ac, av, desc), vm);
- po::notify(vm);
+ po::notify(vm);
 
         if (vm.count("help")) {
             cout << desc << "\n";
@@ -34,17 +33,11 @@
         }
 
         if (vm.count("compression")) {
- cout << "Compression level was set to "
+ cout << "Compression level was set to "
                  << vm["compression"].as<int>() << ".\n";
         } else {
             cout << "Compression level was not set.\n";
         }
-
- if (vm.count("verbose")) {
- string v = vm["verbose"].as<string>();
- if (v.size() > 0)
- cout << "Verbosity is: " << v << ".\n";
- }
     }
     catch(exception& e) {
         cerr << "error: " << e.what() << "\n";

Modified: branches/release/libs/program_options/example/options_description.cpp
==============================================================================
--- branches/release/libs/program_options/example/options_description.cpp (original)
+++ branches/release/libs/program_options/example/options_description.cpp 2008-07-12 05:03:18 EDT (Sat, 12 Jul 2008)
@@ -18,7 +18,7 @@
 template<class T>
 ostream& operator<<(ostream& os, const vector<T>& v)
 {
- copy(v.begin(), v.end(), ostream_iterator<T>(os, " "));
+ copy(v.begin(), v.end(), ostream_iterator<T>(cout, " "));
     return os;
 }
 


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