[w3m-dev-en 00294] "w3m -h" outputs to stderr

From: Moritz Barsnick (barsnick@gmx.net)
Date: Thu Nov 23 2000 - 03:04:40 CST

  • Next message: Hoppe Martin: "[w3m-dev-en 00295] help"

    Hi there,

    I hate being picky, but, hey, why not:

    Quite some time ago, I read that it is now common practice for GNU
    programs _not_ to output help ("prog -h" or "prog --help") to stderr,
    but to stdout instead. It sounds reasonable: If this help is
    explicitely asked for, it shouldn't be treated like an error. :-)
    w3m-0.1.10 puts help to stderr, though. (E.g. it prevents you from
    capturing it with a pager, unless you redirect stderr.) Of course, if
    w3m complains about some unknown or wrong option, the "usage" info
    belongs to stderr, because it isn't expected, and might otherwise land
    in a redirected file or something.

    Just to go sure,
    Moritz.

    P.S.: I might post a patch soon.
    P.P.S.: Is there any collection of all the patches posted here? I have
            many different ones, and they're all either a small (but
            undocumented) collection or separate ones; some of theme had
            been posted here, some not. Is someone merging them into CVS?



    This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 03:18:06 CST