On Sun, May 01, 2011 at 10:17:31PM -0400, W. Trevor King wrote:
> On Sun, May 01, 2011 at 02:52:13AM +0200, Christian Heinrich wrote:
> > 3.) Using wrong syntax should receive better help messages.
> > ...
> 
> How about:
>   "be new" -> ERROR:
>   Missing required argument SUMMARY
>   Run `be help new` for usage details
> 
> Most of the times I mistype commands it's silly, and I only want a
> short reminder.  For newer users, the full help details may be
> interesting, so I'm fine with pointing towards them, but they are too
> long to print every time.

I've just added something like this to my tree.  It's hard for me to
decide what errors should be UsageErrors (which get the usage string
and a pointer towards the command's help) and which should be
UserErrors (which only get the error message), but that's easy enough
to fine tune as we move forward.

-- 
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt

Attachment: pgpReOCNq6tGx.pgp
Description: PGP signature

_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to