From e7dbab5716b42890d7de7e571be22e1524bc8870 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 20 Sep 2012 17:03:37 +0200 Subject: [PATCH] feature #1153: help message is printed on error --- src/cli/command_parser.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/command_parser.rb b/src/cli/command_parser.rb index 29c2e312c6..9c1e49ba99 100644 --- a/src/cli/command_parser.rb +++ b/src/cli/command_parser.rb @@ -468,6 +468,10 @@ module CommandParser else puts "one parameter to run" end + puts + puts "Usage:" + print " #{name} " + print_command(@commands[name]) exit -1 else id=0