[Top][All Lists]

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

Re: cat: invalid option -- h

From: J. Grant
Subject: Re: cat: invalid option -- h
Date: Wed, 15 Jan 2003 12:34:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212


Sounds like you have the best position



Jim Meyering wrote:
"J. Grant" <address@hidden> wrote:

Thanks for the reply. I think -h is almost exclusivly used for help

Sorry.  Adding a short-named option to *any* command is never done
lightly.  This has been debated a few times over the last 10 years.
One problem is that there are always exceptions.  For chown and chgrp,
-h means --no-dereference.  For df, du, and ls, -h means --human-readable.
And there are a few more.  Besides, if I were to add -h == --help for cat,
what's to stop me from adding for the 80 or so other programs in the
coreutils package that don't yet have a -h option?

Just use --help or `--h'.

I noticed that some UNIX machines output cat --help on stderr, I think
the current approach of printing on stdout is more useful.  Is this a
common GNU style to use stdout instead of stderr?

The GNU Coding Standards


says --help output should be written to stdout.
If you find a GNU program that does otherwise, and once
you've verified that it's still a problem with the latest
release, please report it;  it's a bug.

reply via email to

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