Permalink
Browse files

[Command] Parse arguments before calling setup_if_needed.

  • Loading branch information...
1 parent 4d4e3a9 commit 319f8b9ba223d8ca9080f7a6b6334b90a2ef86f7 @fabiopelosin fabiopelosin committed May 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/cocoapods/command.rb
View
@@ -64,8 +64,9 @@ def self.options
end
def self.run(*argv)
+ sub_command = parse(*argv)
Setup.new(ARGV.new).run_if_needed
- parse(*argv).run
+ sub_command.run
rescue Interrupt
puts "[!] Cancelled".red

0 comments on commit 319f8b9

Please sign in to comment.