18 Nov 12:58
[Program Options] Multi-char option alias
From: Uli Köhler <ulikoehler <at> online.de>
Subject: [Program Options] Multi-char option alias
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-11-18 12:02:28 GMT
Subject: [Program Options] Multi-char option alias
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-11-18 12:02:28 GMT
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
RSS Feed