Boost program_options Can I create abbreviations with more than one character?

I am currently porting an old application with some weird command line arguments. When using Boost program_options, I try to save some of these arguments from the old version of the application to ensure compatibility of some user scripts.

My problem is that I could not find a way to add abbreviated parameters with two or more characters.

For example, if I add:

("testOption,to", "This is just a test-option") 

in options_description, I only get -t as shorthand for -testOption.

Can I use longer shortened options?

+4
source share

Source: https://habr.com/ru/post/1485605/


All Articles