tap: don't backtrace on invalid options.

Closes Homebrew/homebrew#47162.
This commit is contained in:
Mike McQuaid 2015-12-25 18:25:01 +00:00
parent 86bd9c9f39
commit 75ae0cfb3a

View File

@ -14,7 +14,7 @@ module Homebrew
elsif ARGV.first == "--list-pinned" elsif ARGV.first == "--list-pinned"
puts Tap.select(&:pinned?).map(&:name) puts Tap.select(&:pinned?).map(&:name)
else else
tap = Tap.fetch(ARGV.named[0]) tap = Tap.fetch(ARGV[0])
begin begin
tap.install(:clone_target => ARGV.named[1], tap.install(:clone_target => ARGV.named[1],
:full_clone => ARGV.include?("--full")) :full_clone => ARGV.include?("--full"))