On Sat, Jul 11, 2009 at 7:39 AM, Steve M. Robbins<st...@sumost.ca> wrote:
> I wasted 20 minutes debugging help2man because it outputs
> a completely unhelpful message:
>
>        help2man: can't get `--help' info from inspect
>
> when the program writes to stderr.
>
> David Bremner suggested to at least documenting this design
> choice.  Please consider the enclosed patch.

The design choice is simple:  don't try to parse error messages as
help, consider the following examples from a non-linux system:

  $ ls --help
  ls: unknown option -- -
  usage: ls [-1AaCcdFfghikLlmnopqRrSsTtux] [file ...]
  $ cp --help
  cp: unknown option -- -
  usage: cp [-fip] [-R [-H | -L | -P]] source target
         cp [-fip] [-R [-H | -L | -P]] source ... directory

For this reason, help2man will continue to ignore stderr by default.
I will however change the wording of the error message, and add a
--no-discard-stderr (or whatever) option.

--bod



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to