mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #1692: show commands parameters on error help
This commit is contained in:
1 parent
240968a4d9
commit
a56f8dbbad
1 file changed
+2
-8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user