feature #1692: show commands parameters on error help

This commit is contained in:
Javi Fontan authored and Tino Vazquez committed 2012-12-21 11:14:09 +01:00
1 parent 240968a4d9
commit a56f8dbbad
1 file changed
+2 -8
+2 -8
View File
@@ -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