From a56f8dbbad1cf8db2afd6aef72af0f2f175b2184 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 17 Dec 2012 12:34:19 +0100 Subject: [PATCH] feature #1692: show commands parameters on error help --- src/cli/command_parser.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/cli/command_parser.rb b/src/cli/command_parser.rb index 41bcce9b78..9094183cd4 100644 --- a/src/cli/command_parser.rb +++ b/src/cli/command_parser.rb @@ -498,15 +498,9 @@ module CommandParser else puts "one parameter to run" end - puts - puts "Usage:" - if @main - print " #{@usage}\n" - else - print " #{name} " - print_command(@commands[name]) - end + print_command_help(name) + exit -1 else id=0