[Repo Push] Help validation

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
parent 5496974a
...@@ -49,14 +49,13 @@ module Pod ...@@ -49,14 +49,13 @@ module Pod
end end
def validate! def validate!
super
help! 'A spec-repo name is required.' unless @repo help! 'A spec-repo name is required.' unless @repo
unless @source.repo.directory? unless @source.repo.directory?
raise Informative, raise Informative,
"Unable to find the `#{@repo}` repo. " \ "Unable to find the `#{@repo}` repo. " \
'If it has not yet been cloned, add it via `pod repo add`.' 'If it has not yet been cloned, add it via `pod repo add`.'
end end
super
end end
def run def run
......
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