Commit 495e3f27 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Help] Show root help with 'pod help'

To see the help of the help command
it is necessary to do:

    pod help help

:-)
parent eaf4dd14
...@@ -5,7 +5,7 @@ module Pod ...@@ -5,7 +5,7 @@ module Pod
self.arguments = '[COMMAND]' self.arguments = '[COMMAND]'
def initialize(argv) def initialize(argv)
@help_command = Pod::Command.parse(argv) unless argv.empty? @help_command = Pod::Command.parse(argv)
super super
end end
...@@ -16,7 +16,7 @@ module Pod ...@@ -16,7 +16,7 @@ module Pod
private private
def help_command def help_command
@help_command || self @help_command
end end
end end
end 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