Boost logo

Boost Users :

Subject: [Boost-users] [program_options] Can I use shorthand options with more than one char?
From: Stefan Köhnen (stefan.khnen_at_[hidden])
Date: 2013-06-10 12:00:46


Hello,

I am currently migrating an old application with some weird command-line
arguments.
While using Boost program_options, I try to keep some of those arguments
from the old version of the application, to assure the compatibility of
some user scripts.

My problem is that I couldn't find a way to add shorthand options with two
or more characters.

For example, if I add:

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

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

Is there some way to use longer shorthand options?

Greetings,

Stefan Köhnen



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