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

Re: client help messages

From: Michael Salmon <ms_at_collab.net>
Date: 2001-06-19 00:07:39 CEST

On Mon, Jun 18, 2001 at 03:06:40PM -0500, Karl Fogel wrote:
> Ben Collins-Sussman <sussman@collab.net> writes:
> > > or whatever option the client will accept, will goto STDOUT? The
> > > client for cvs prints the data for --help and --help-options to
> > > STDERR.
> >
> > I think right now the client prints everything to STDOUT. Is STDERR
> > better?
>
> I think you're right about CVS, but I've never understood the
> justification. Executing "svn --help" is a valid command, the
> successful result of which is to print a help message. Why should
> this be considered an error?
>
> I can see it going to stderr in the case where a help message is
> printed out because the user invoked svn incorrectly, and svn is
> trying to help the user come up with a valid command line (though even
> there, going to stderr instead of stdout seems of questionable
> real-world usefulness). But not when the user ran "svn --help"
> explicitly.

exactly,
svn --nosuchcommand -> STDERR
svn --help -> STDOUT
 
> -K

ms-

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:32 2006

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.