From 00ef4b7fcb2a3b708c77483439b8ed3b027375c3 Mon Sep 17 00:00:00 2001 From: Peter Aronoff Date: Sat, 2 Mar 2013 06:52:55 -0500 Subject: 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 --- Library/Homebrew/cmd/untap.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') 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 `" if ARGV.empty? + user, repo = tap_args # we consistently downcase in tap to ensure we are not bitten by case-insensive -- cgit v1.2.3