[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] svnversion should its help messages to stdout

From: Kobayashi Noritada <nori1_at_dolphin.c.u-tokyo.ac.jp>
Date: 2005-02-21 01:51:12 CET

Hi,

Thank you for your reply.

From: Philip Martin <philip@codematters.co.uk>
Subject: Re: [PATCH] svnversion should its help messages to stdout
Date: Sun, 20 Feb 2005 18:07:39 +0000

> > This patch changes output destination of help messages for 'svnversion'
> > and 'svnversion --help'.
>
> svnversion doesn't have a --help option.

Oops, exactly so. I must read code and understand its behabior more carefully.

> > Since users often read help messages with a pager such as 'more' or 'less',
> > commands should output its help message not to stderr but to stdout.
> > It seems that svn, svnadmin, svnlook, svnserve, and svndumpfilter do so,
> > but svnversion does not.
>
> What you are seeing are error messages generated when command line
> parsing fails and so stderr is probably the correct stream.

Yes, it seems to be a general error message, not a help one.

> If you want to change the behaviour it's probably be better to make
> the error messages shorter, by 1) removing the usage message when
> invalid options are supplied and 2) making a bare 'svnversion' suggest
> adding '--help'. Then add a --help option that prints the usage to
> stdout.

Thanks, your suggestion is a correct way to improve svnversion's behavior.
So, I'll try to create another patch to change the default error message
and add an option '--help'.

Regards,

-- 
|:  Noritada KOBAYASHI
|:  Dept. of General Systems Studies,
|:  Graduate School of Arts and Sciences, Univ. of Tokyo
|:  E-mail: nori1@dolphin.c.u-tokyo.ac.jp (preferable)
|:          nori@esa.c.u-tokyo.ac.jp
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 21 01:52:16 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.