From: Jonathan Rockway Date: Wed, 29 Apr 2009 14:22:41 +0000 (-0500) Subject: be even nicer about the message; add a "perhaps you meant" message X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3619e5d6490cda3c85e90ff984c173ed3b77c00e;p=gitmo%2FMooseX-Runnable.git be even nicer about the message; add a "perhaps you meant" message --- diff --git a/lib/MooseX/Runnable/Util/ArgParser.pm b/lib/MooseX/Runnable/Util/ArgParser.pm index 613844e..a373a92 100644 --- a/lib/MooseX/Runnable/Util/ArgParser.pm +++ b/lib/MooseX/Runnable/Util/ArgParser.pm @@ -88,7 +88,7 @@ sub _build_class_name { confess 'Parse error: expecting --, got EOF'; } - confess "Parse error: looking for ClassName, but can't find it"; + confess "Parse error: looking for ClassName, but can't find it; perhaps you meant '--help' ?"; } sub _look_for_dash_something($@) {