Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-15 07:52:40


Gordon Smith wrote:

> Does program_options support use of "/" instead of "-"?

Yea, there's a 'style' parameter to 'parse_command_line':

   http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/parse_command_line.html

and the values which can be 'or'-ed are at

    http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/enum.boost.program_options.command_line_style.style_t.html

I think what you want is

   (command_line_style::unix_style ^
    command_line_style::allow_dash_for_short)
   | command_line_style::allow_slash_for_short

HTH,
Volodya


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