help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-gengetopt] dependon certain value of an option


From: Duke
Subject: [help-gengetopt] dependon certain value of an option
Date: Thu, 07 Oct 2010 11:50:46 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4

 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?

Thanks so much,

D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]