Re: [Boost-bugs] [Boost C++ Libraries] #342: program_options Can one have options with optional values?

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #342: program_options Can one have options with optional values?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-28 14:42:38


#342: program_options Can one have options with optional values?
-------------------------------+--------------------------------------------
  Reporter: nobody | Owner: vladimir_prus
      Type: Support Requests | Status: assigned
 Milestone: | Component: None
   Version: None | Severity:
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Comment (by rleigh_at_[hidden]):

 This is a feature I would also find most useful. In my case, I would
 like to have an option:

   --run-session

 but also allow the user to specify an optional session name

   --run-session=session-name

 and if this is missing, I will compute one automatically.

 GNU getopt_long has the concept of "required" and "optional" arguments.
 It would be nice if typed_value/value_semantic had an optional() method
 and member to permit this.


 Regards,
 Roger

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/342#comment:1>
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:49:55 UTC