tap: don't backtrace on invalid options.
Closes Homebrew/homebrew#47162.
This commit is contained in:
parent
86bd9c9f39
commit
75ae0cfb3a
@ -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"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user