[darcs-devel] [darcs #310] Re: [darcs-users] Send "darcs help" output to STDOUT

David Roundy via RT bugs at darcs.net
Sat Apr 2 12:57:28 PST 2005


Sat Apr 02 15:57:24 2005: New ticket: 310.
Transaction: Ticket created by droundy
       Queue: Darcs
     Subject: Re: [darcs-users] Send "darcs help" output to STDOUT
       Owner: Nobody
  Requestors: droundy at abridgegame.org
      Status: new
 Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=310 >

On Sat, Apr 02, 2005 at 08:03:11PM +0200, Tomasz Zielonka wrote:
> On Fri, Apr 01, 2005 at 11:00:12PM -0800, Michael G Schwern wrote:
> > B)  Go one step further and make the usage information *always* go to
> > STDOUT even for "darcs wifflebingbobwoo" because in this case there's
> > nothing on STDOUT anyway.
> 
> but not this! There nothing on STDOUT on purpuse! Would you like darcs
> to finish with exit code 0 too?

Indeed, we must consider the case where darcs is called from within a
script, or some other situation where stdout isn't apparent to the user.
What might help would be to shorten the message when a command is mistyped
so the user can see the whole message:

$darcs wifflebingbobwoo

darcs failed:  Invalid command 'wifflebingbobwoo'!

Try darcs --help to see a list of valid commands.
-- 
David Roundy
http://www.darcs.net





More information about the darcs-devel mailing list