Relocate option parsing error handling up a level
parent
74ae89ac96
commit
da25391426
|
@ -453,6 +453,8 @@ module DispatcherShell
|
|||
run_command(dispatcher, method, arguments)
|
||||
found = true
|
||||
end
|
||||
rescue OptionParser::ParseError
|
||||
print_error("#{method}: #{e.message}")
|
||||
rescue
|
||||
error = $!
|
||||
|
||||
|
@ -490,8 +492,6 @@ module DispatcherShell
|
|||
else
|
||||
dispatcher.send('cmd_' + method, *arguments)
|
||||
end
|
||||
rescue OptionParser::ParseError => e
|
||||
print_error("#{method}: #{e.message}")
|
||||
ensure
|
||||
self.busy = false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue