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

[lvm-devel] Re: proposed change: don't spew all --help output for every usage error



On Mon, Sep 17, 2007 at 02:55:42PM +0200, Jim Meyering wrote:
> Any time I misuse an option or use invalid command syntax,
> a tool like lvcreate gives a diagnostic saying what went wrong,
> and follows it with almost 50 lines of usage information.

An approach inherited from LVM1.  Yes, let's change it.

>   Try `lvcreate --help' for more information.
 
'Use' or 'Run' rather than 'Try'?
'more information': currently it's just the command syntax we give.
-h also works.

> as an option: they print --help output to standard output.

stderr is sensible today, because these are error messages.
But if they are only going to appear when you explicitly ask for them
with -h then stdout makes sense.

>   - Print "Try `$cmd --help' for more information." instead of all --help
>     output upon bogus command line usage. (still to stderr, of course)

So yes, but the wording should be improved.
 
>   - Print --help output to stdout, not stderr.

Yes, after the first change.

Alasdair
-- 
agk redhat com


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