Boost Program Options Syntax

后端 未结 1 1277
死守一世寂寞
死守一世寂寞 2020-12-29 08:14

I\'m using boost::program_options to read the users\' input from the command line argument. It works very nicely and allows me to output helpful usage messages and validate

1条回答
  •  隐瞒了意图╮
    2020-12-29 08:40

    Short options by definition have just one character. If they had more, they'd be long options.

    To allow long options to start with a single dash, include the allow_long_disguise command-line style, as described on the documentation page you linked to:

    It's possible to introduce long options by the same character as short options, see allow_long_disguise.

    0 讨论(0)
提交回复
热议问题