Boost Users :
Subject: Re: [Boost-users] feature request: program_options: generate OS dependent options
From: Diederick C. Niehorster (dcnieho_at_[hidden])
Date: 2009-12-08 07:15:40
Please reiterate your request by filing a report on the tracker:
Then the right people will see it at some point (it was great to see
there has been some recent activity on the tracker for program
On Tue, Dec 8, 2009 at 7:35 PM, Hicham Mouline <hicham_at_[hidden]> wrote:
> Following the discussion in
> http://lists.boost.org/boost-users/2009/12/54327.php, let me then request
> that the feature be implemented in program_options.
> The 2 systems that I know a little about are POSIX(thanks Ovanes) and
> .POSIX: Typically, the command line would options with the '-' being the
> delimiter, like for 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
> Â ....
> Â dir /?: Typically, the '/' is the delimiter.
> Â ...
> Â /B Â Â Â Â Â Uses bare format (no heading information or summary).
> Â ...
> So in fact, I have 2 feature requests :-) Â :
> 1. Detect automatically the OS platform and the appropriate delimiter ( / or
> - or -- ) for win or POSIX
> 2. Detect the special option (help) that dislays the usage, which is /? on
> windows and --help on POSIX, and treat it symbolically in the user code
> calling program_options, ie not having to test for the "help" string as
> shown in the tutorial.
> I can create the trac tickets if preferred,
> Boost-users mailing list
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net