[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: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-02-20 19:07:39 CET

Kobayashi Noritada <nori1@dolphin.c.u-tokyo.ac.jp> writes:

> This patch changes output destination of help messages for 'svnversion'
> and 'svnversion --help'.

svnversion doesn't have a --help option.

> 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.

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.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Feb 20 19:08:44 2005

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