Re: mutually exclusive group of options

"Papp Gyozo (VBuster)" <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
> >  scan --init   --dir1=... --dir2=... ; create an own scanning process
> > 
> > or
> > 
> >  scan --attach --address=... ; attach to a daemon
> > 
> > I know I can specify "init" and "attach" as mutually exclusive group
> options but I don't know how to induce gengetopt to allow dir options
> only if --init is given and --address if --attach is given. 
> > 
> you can use the "dependon" specification of an option:

It seems I lag behind the rapid development of gengetopt, thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.