Re: dependon certain value of an option

Duke <[email protected]> Fri, 08 Oct 2010 10:11:06 -0400
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
  On 10/8/10 3:24 AM, Lorenzo Bettini wrote:
> On 10/07/2010 05:50 PM, Duke wrote:
>> Hi all,
>>
>> I came across an option that depends on a certain value of a required
>> option. For example:
>>
>> option "method" m "Method used" int values="1","2","3" default="1" 
>> required
>> option "distance" d "Distance to be used for method 2" int
>> dependon="method"
>>
>> Basically option d needed only if method used is 2.
>>
>> Is there any way of doing this?
>
> I'm afraid this has to be done manually by you: gengetopt does not 
> provide this functionality.

Thanks Lorenzo.

D.

>
> cheers
>     Lorenzo
>