29 Nov
2009
29 Nov
'09
10:20 a.m.
Dejan schrieb:
Hi all,
Hi,
I'm experimenting with program_options and trying to get something like "mandatory options". E.g.
# my_prog -a someValue
with "-a someValue" as mandatory options. Can I define "something" with program_options.
Currently it is not possible to mark an option as "mandatory", but there is something in work (Ticket #2982) to mark an option as required which will cause the library to check if the related option occured. This is planned for 1.42. Currently you have to check in your code after parsing.
Thanks in advantage
You're welcome Sascha