Merge pull request #6146 from Moisan/bump-revision-no-formula

bump-revision: raise an error when no formula argument
This commit is contained in:
Mike McQuaid 2019-05-18 09:05:29 +01:00 committed by GitHub
commit c635e47ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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