aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorPeter Aronoff2013-03-02 06:52:55 -0500
committerMike McQuaid2013-03-02 12:11:56 +0000
commit00ef4b7fcb2a3b708c77483439b8ed3b027375c3 (patch)
tree7ce66be047b63f22a8b7a415428aafe5ddae0642 /Library/Homebrew/cmd
parentc8335d9c469301762ecf84acd41f10d5b5c868b7 (diff)
downloadbrew-00ef4b7fcb2a3b708c77483439b8ed3b027375c3.tar.bz2
A more helpful error message for `brew untap`
`brew untap` without arguments currently errors out (as it should), but the error message is generic and unhelpful. (The error message is borrowed from a method in the tap command - `tap_args`.) Closes Homebrew/homebrew#18186. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/untap.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb
index 148e96448..32b623277 100644
--- a/Library/Homebrew/cmd/untap.rb
+++ b/Library/Homebrew/cmd/untap.rb
@@ -2,6 +2,8 @@ require 'cmd/tap' # for tap_args
module Homebrew extend self
def untap
+ raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
+
user, repo = tap_args
# we consistently downcase in tap to ensure we are not bitten by case-insensive