Commit bff1e393 authored by Eloy Durán's avatar Eloy Durán

Don't break when a command isn't recognized and trying to show a help banner.

parent ceaba67c
......@@ -115,10 +115,10 @@ module Pod
when 'update' then Update
end
if show_help
raise Help.new(command_class, argv)
elsif command_class.nil?
if command_class.nil?
raise Help.new(self, argv, command_argument)
elsif show_help
raise Help.new(command_class, argv)
else
command_class.new(argv)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment