Boost logo

Boost Users :

Subject: [Boost-users] [Program Options] Multi-char option alias
From: Uli Köhler (ulikoehler_at_[hidden])
Date: 2008-11-18 07:02:28


Hi everyone,
is there a way to declare an alias for an options with more than one
character,
for example:
options_description desc("Allowed options")
desc.addOptions()
("disable-header,dh", "Disable")
;
I'm using Boost 1.37.0 on Linux x64 and when I try to run the program
it displays:
"-d [ --disable-header ] Disable"
The character 'd' is otherwise used (and 'h' is also not available)
Do you know how to tell program_options to use a multi-character alias?

Thanks in advance


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