feature request: program_options: generate OS dependent options
Hello, 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 Windows: .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 .... .Windows 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, Regards,
Hi Hicham,
Please reiterate your request by filing a report on the tracker:
https://svn.boost.org/trac/boost/report/14?USER=anonymous&page=5.
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
options!).
Best,
Dee
On Tue, Dec 8, 2009 at 7:35 PM, Hicham Mouline
Hello,
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 Windows: .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 ....
.Windows 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,
Regards,
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Diederick C. Niehorster Sent: 08 December 2009 12:16 To: boost-users@lists.boost.org Subject: Re: [Boost-users] feature request: program_options: generate OS dependent options
Hi Hicham,
Please reiterate your request by filing a report on the tracker: https://svn.boost.org/trac/boost/report/14?USER=anonymous&page=5. 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 options!).
Best, Dee
On Tue, Dec 8, 2009 at 7:35 PM, Hicham Mouline
wrote: Hello,
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 Windows: .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 ....
.Windows 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,
Regards,
3732 and 3733 are created. Rds,
participants (2)
-
Diederick C. Niehorster
-
Hicham Mouline