
In this case the user will simply have to delete all but one keg in order to use the command that uses ARGV.kegs. Refs Homebrew/homebrew#11050.
11 lines
215 B
Ruby
11 lines
215 B
Ruby
module Homebrew extend self
|
|
def unlink
|
|
raise KegUnspecifiedError if ARGV.named.empty?
|
|
|
|
ARGV.kegs.each do |keg|
|
|
print "Unlinking #{keg}... "
|
|
puts "#{keg.unlink} links removed"
|
|
end
|
|
end
|
|
end
|