help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] dependon certain value of an option


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] dependon certain value of an option
Date: Fri, 08 Oct 2010 09:24:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100922 Lightning/1.0b2 Thunderbird/3.1.4

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.

cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net



reply via email to

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