bump-revision: raise an error when no formula
This commit is contained in:
parent
e098c37dc3
commit
816fdd0f5a
@ -33,6 +33,7 @@ module Homebrew
|
||||
# user path, too.
|
||||
ENV["PATH"] = ENV["HOMEBREW_PATH"]
|
||||
|
||||
raise FormulaUnspecifiedError if ARGV.formulae.empty?
|
||||
raise "Multiple formulae given, only one is allowed." if ARGV.formulae.length > 1
|
||||
|
||||
formula = ARGV.formulae.first
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user