Skip to content
Snippets Groups Projects
Unverified Commit 9b9e9eb8 authored by Zhiming Wang's avatar Zhiming Wang
Browse files

ARGV: kegs: error on empty arguments

Fixes #1138.
parent 03e568e8
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,8 @@ module HomebrewArgvExtension
require "keg"
require "formula"
@kegs ||= downcased_unique_named.collect do |name|
raise UsageError if name.empty?
rack = Formulary.to_rack(name.downcase)
dirs = rack.directory? ? rack.subdirs : []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment