Skip to content

Commit

Permalink
[Repo Push] Help validation
Browse files Browse the repository at this point in the history
super should be first in the case that the help flag is passed in.
https://github.com/CocoaPods/CLAide/blob/master/lib/claide/command.rb#L543-L550
  • Loading branch information
nwest committed May 19, 2016
1 parent 5496974 commit fe5819e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cocoapods/command/repo/push.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ def initialize(argv)
end

def validate!
super
help! 'A spec-repo name is required.' unless @repo
unless @source.repo.directory?
raise Informative,
"Unable to find the `#{@repo}` repo. " \
'If it has not yet been cloned, add it via `pod repo add`.'
end

super
end

def run
Expand Down

0 comments on commit fe5819e

Please sign in to comment.