program_options, /Ob<n>

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

program_options, /Ob<n>

Strelnikov Michael
Hello All,

I'd like to parse cl.exe's command line with program_options.

po::command_line_style::style_t op_style =
  po::command_line_style::style_t(
   po::command_line_style::allow_long
   | po::command_line_style::allow_long_disguise
   | po::command_line_style::long_allow_adjacent
  );

Parses only -Ob=<n>

thanks



_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: program_options, /Ob<n>

Vladimir Prus
Strelnikov Michael wrote:

> Hello All,
>
> I'd like to parse cl.exe's command line with program_options.
>
> po::command_line_style::style_t op_style =
>   po::command_line_style::style_t(
>    po::command_line_style::allow_long
>    | po::command_line_style::allow_long_disguise
>    | po::command_line_style::long_allow_adjacent
>   );
>
> Parses only -Ob=<n>

Please try "allow_slash_for_short". Can't try right away, but should work.

- Volodya

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users