On Mon, Apr 2, 2012 at 00:29, David Prévot <taf...@debian.org> wrote:
> Hi,
>
> Le 01/04/2012 18:24, Gergely Nagy a écrit :
>> Andreas Tille <andr...@an3as.eu> writes:
>
>>> I would like to add man pages to a program which does not accept any
>>> help option but if you call it without any option it outputs the help
>
>> help2man -h "" $program will probably do the trick.
>
> No:
>
> $ help2man -h "" help2man
> help2man: can't get `' info from help2man

That happens because help2man without arguments will output to stderr.
Add --no-discard-stderr, and it will just work. Or try with a program
that outputs to stdout.

It does do the trick.

> $ reportbug help2man
>
> may help to make it work one day.

Or you can read the full output of the command you pasted:

| algernon@luthien:~$ help2man -h "" help2man
| help2man: can't get `' info from help2man
| Try `--no-discard-stderr' if option outputs to stderr

-- 
|8]


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOcunHm=VSZ66t0SdrZUJuFCVtVv=wqsht26b7vezxregqh...@mail.gmail.com

Reply via email to