Boost logo

Boost Users :

Subject: Re: [Boost-users] program_options
From: Sascha Ochsenknecht (s.ochsenknecht_at_[hidden])
Date: 2009-11-29 05:20:19


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


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