be even nicer about the message; add a "perhaps you meant" message
Jonathan Rockway [Wed, 29 Apr 2009 14:22:41 +0000 (09:22 -0500)]
lib/MooseX/Runnable/Util/ArgParser.pm

index 613844e..a373a92 100644 (file)
@@ -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($@) {