Commit 319f8b9b authored by Fabio Pelosin's avatar Fabio Pelosin

[Command] Parse arguments before calling setup_if_needed.

parent 4d4e3a95
...@@ -64,8 +64,9 @@ module Pod ...@@ -64,8 +64,9 @@ module Pod
end end
def self.run(*argv) def self.run(*argv)
sub_command = parse(*argv)
Setup.new(ARGV.new).run_if_needed Setup.new(ARGV.new).run_if_needed
parse(*argv).run sub_command.run
rescue Interrupt rescue Interrupt
puts "[!] Cancelled".red puts "[!] Cancelled".red
......
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