[Boost-bugs] [Boost C++ Libraries] #4781: Boost Program Options 'arg' text could be editiable.

Subject: [Boost-bugs] [Boost C++ Libraries] #4781: Boost Program Options 'arg' text could be editiable.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-24 07:13:10


#4781: Boost Program Options 'arg' text could be editiable.
---------------------------------------+------------------------------------
 Reporter: robertmassaioli@… | Owner: vladimir_prus
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: arg program_options |
---------------------------------------+------------------------------------
 I have a minor feature request and that is that when I write out a program
 option that has an argument it comes out, for example, like this:

 {{{
   -m [ --log-file ] arg (=<none>) set log file.
 }}}

 But that 'arg' does not look nice to me; I would rather that it read:

 {{{
   -m [ --log-file ] <filename> (=<none>) set log file.
 }}}

 And I would like to be able to set that somehow in the po::value setup. I
 also checked to see if you could do this already and it seems as though
 you cannot in the boost::program_options source code itself starting on
 line 67 of value_semantic.cpp there is the following lines:

 {{{#!cpp
 BOOST_PROGRAM_OPTIONS_DECL std::string arg("arg");

 std::string
 untyped_value::name() const
 {
     return arg;
 }
 }}}

 So since 'arg' seems to be set in stone I do not think that it is possible
 to do this yet. I would really like to know if you think this is a good
 idea or not. Thanks.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4781>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC