[Boost-bugs] [Boost C++ Libraries] #3732: Detect platform to choose delimiter to use for reading options from command line

Subject: [Boost-bugs] [Boost C++ Libraries] #3732: Detect platform to choose delimiter to use for reading options from command line
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-08 15:03:00


#3732: Detect platform to choose delimiter to use for reading options from command
line
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: vladimir_prus
     Type: Feature Requests | Status: new
Milestone: | Component: program_options
  Version: Boost 1.41.0 | Severity: Cosmetic
 Keywords: |
------------------------------+---------------------------------------------
 POSIX systems usually use - or -- as a "delimiter" when reading options
 from command lines. For e.g. the 'ls' program on a linux system:

 {{{
   ls --help
   ....
   -a, --all do not ignore entries starting with .
   -A, --almost-all do not list implied . and ..
       --author with -l, print the author of each file
   -b, --escape print octal escapes for nongraphic
  characters
       --block-size=SIZE use SIZE-byte blocks
       --help print this
   ....
 }}}


 Windows usually uses the / character instead, for e.g. for dir:
 dir /?: Typically, the '/' is the delimiter.
 {{{
   ...
   /B Uses bare format (no heading information or summary).
   ...
 }}}

 It would be useful to have the library recognize the platform on which it
 is begin compiled (or even better, the platform being targeted) and use
 the default for that platform for reading options from the command line.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3732>
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:02 UTC