[program_options] MS command line option
Is there any way to support the Microsoft 'standard' for command line options i.e '/' instead of '-'. We've got legacy code that requires command line options to be in this format while at the same time attempting to implement boost in a lot of our new code. Simon
Yes, I think there is. You can specify the commandline style with boost::program_options::command_line_style::style_t (cf. documentation) HTH, Chris On Thursday 17 August 2006 04:29, Simon Reye wrote:
Is there any way to support the Microsoft 'standard' for command line options i.e '/' instead of '-'. We've got legacy code that requires command line options to be in this format while at the same time attempting to implement boost in a lot of our new code.
Simon
Thanks Chris. I had a look and there is a allow_slash_for_short option but there doesn't seem to be an allow_slash_for_long. Can anyone confirm this? Simon Chris Hoeppler wrote:
Yes, I think there is. You can specify the commandline style with boost::program_options::command_line_style::style_t (cf. documentation)
HTH,
Chris
On Thursday 17 August 2006 04:29, Simon Reye wrote:
Is there any way to support the Microsoft 'standard' for command line options i.e '/' instead of '-'. We've got legacy code that requires command line options to be in this format while at the same time attempting to implement boost in a lot of our new code.
Simon
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I'd suppose you'll get what you're after if you combine the allow_slash_for_short with the allow_long_disguise style. Chris
Thanks Chris. I had a look and there is a allow_slash_for_short option but there doesn't seem to be an allow_slash_for_long. Can anyone confirm this?
Simon
Chris Hoeppler wrote:
Yes, I think there is. You can specify the commandline style with boost::program_options::command_line_style::style_t (cf. documentation)
HTH,
Chris
On Thursday 17 August 2006 04:29, Simon Reye wrote:
Is there any way to support the Microsoft 'standard' for command line options i.e '/' instead of '-'. We've got legacy code that requires command line options to be in this format while at the same time attempting to implement boost in a lot of our new code.
Simon
participants (2)
-
Chris Hoeppler
-
Simon Reye