help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] text before section


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] text before section
Date: Sat, 27 Mar 2010 12:15:03 +0100
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Hi there

do you mean this problem appeared again after my recent fix for \n chars?

cheers
        Lorenzo

T o n g wrote:
Hi,

This is a follow up to my previous issue report
http://thread.gmane.org/gmane.comp.gnu.gengetopt.general/238
which was eclipsed by the provided solution. Now it emerges again.

Basically, I want to output some text before section, but noticed it is generated after the section instead:

--------------------------------
-# Name of your program, don't use if you're using automake
package "sample1"
# Version of your program, don't use if you're using automake
version "2.0"

purpose "this is just a test program for gengetopt"

section "Section 1" option "str-opt" s "A string option, for a filename" optional string typestr="filename"
text            "      explain more about the string option"

section "Section 2" option "int-opt" i "A int option" int optional -------------------------------

will get me:

--------------------------------
sample1 2.0

this is just a test program for gengetopt

Usage: sample1 [OPTIONS]...

Section 1:
  -s, --str-opt=filename  A string option, for a filename

Section 2:
      explain more about the string option
  -i, --int-opt=INT       A int option
-------------------------------

I guess internally, gengetopt flushes out 'text' cache only before output 'option' info (but not 'section'). Would flushing out 'text' cache before 'section' possible?

Thanks



--
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]