[Top][All Lists]

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

[Bug-gnulib] Re: [Bug-tar] argp and gettext

From: Miles Bader
Subject: [Bug-gnulib] Re: [Bug-tar] argp and gettext
Date: Mon, 13 Sep 2004 09:03:21 -0400
User-agent: Mutt/1.3.28i

On Mon, Sep 13, 2004 at 02:41:09PM +0200, Bruno Haible wrote:
> > OPTION_DOC options are handled in a different manner: their `name' field
> > is not supposed to be an option name, it serves as a sort of `label'.
> And what if the program doesn't want a "label"? If tar.c sets the name
> to NULL, argp crashes. If tar.c sets the name to "", argp fetches the
> header entry. tar.c could set the name to " ", but that looks like a
> gross hack.

argp should probably just not print name fields that are empty, e.g., replace

        if (opt->name && ovisible (opt))


        if (opt->name && *opt->name && ovisible (opt))

or so.

[Normally I suppose the issue doesn't come up because argp automatically
fills the doc-string, so it's usually not necessary to have "continuation"
entries like that.]

Quidquid latine dictum sit, altum viditur.

reply via email to

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