Re: Any hint for help2man if programm does not accept help option
On Mon, Apr 2, 2012 at 00:29, David Prévot <taffit@debian.org> wrote:
> Hi,
>
> Le 01/04/2012 18:24, Gergely Nagy a écrit :
>> Andreas Tille <andreas@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]
Reply to: