On Thu, Jun 27, 2013 at 05:41:09PM +0100, Richard Dale wrote:
On 06/27/2013 05:27 PM, Lars Wirzenius wrote:
>On Thu, Jun 27, 2013 at 04:44:48PM +0100, Richard Dale wrote:
>>-bash-4.2# morph branch help
>>ERROR: morph branch needs name of branch as parameter
>You need: "morph help branch".
Yes, I know that, I should have used better examples like 'morph
edit foobar'. But why aren't the error messages for using 'morph
branch' or 'morph edit' incorrectly the same as the help messages -
they are saying exactly the same thing in a more clumsy manner.
A help message tends not to be a good error message (and vice versa). A good
error message will tell you what went wrong, and what you should do to fix
that. A good help message will tell you how to use the thing in the first
place, but is much more verbose than a good error message.
I grant you that Morph's error and help messages aren't good.
http://www.codethink.co.uk/ http://wiki.baserock.org/ http://www.baserock.com/