class Pod::Command::Repo::Add

def initialize(argv)

def initialize(argv)
  @name, @url, @branch = argv.shift_argument, argv.shift_argument, argv.shift_argument
  super
end

def run

def run
  UI.section("Cloning spec repo `#{@name}` from `#{@url}`#{" (branch `#{@branch}`)" if @branch}") do
    config.repos_dir.mkpath
    Dir.chdir(config.repos_dir) { git!("clone '#{@url}' #{@name}") }
    Dir.chdir(dir) { git!("checkout #{@branch}") } if @branch
    SourcesManager.check_version_information(dir)
  end
end

def validate!

def validate!
  super
  unless @name && @url
    help! "Adding a repo needs a `NAME` and a `URL`."
  end
end