[Top][All Lists]

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

Re: [help-gengetopt] Re: GNU Gengetopt 2.22

From: Papp Gyozo (VBuster)
Subject: Re: [help-gengetopt] Re: GNU Gengetopt 2.22
Date: Wed, 05 Mar 2008 13:56:01 +0100

> >>  > gengetopt:10: syntax error `
> >>  > gengetopt:10: `-q' does not print name of clean files.'
> >>  > gengetopt:10: ^
> >>  >
> >>  > The commandline was 'gengetopt -f getoptions -acmdline_options
> >>
> >>  I tried your code and it works fine with me... could you please send me
> >>  the file that experiences this problem?

> I cannot seem to reproduce the problem (even with dos newlines), could 
> you please send me the file?

It may be nothing to do with gengetopt but the way I create the ggo file.

Actually the original .ggo file is rather a template which is filled in with 
cpp preprocessor (replace defines with real string values for option defaults 
and such): 

        $(CC) -I $(THISDIR) $(CFLAGS) $(defines) -E -x c $(THISDIR)/$< \
        | tee options.processed \
        | $(GENGETOPT) -f getoptions -acmdline_options -uTARGETS -CeN

the original lines above look like from options.processed:

option "quiet" q
"control message verbosity on stdout."
 `-q' does not print name of clean files.'
 `-qq' suppresses all messages but alerts, and'
 `-qqq' implies terse' as well.
It does not affect error reporting on stderr!""
        no multiple

Each unterminated quote (both single and double) is terminated automagically, 
that's why gengetopt fails.

reply via email to

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