diff options
| author | Peter Aronoff | 2013-03-02 06:52:55 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-02 12:11:56 +0000 |
| commit | ebf6ba6ef5fef1139b034dd1f79ef1ec1c13d55e (patch) | |
| tree | ebe74ceb1e5adb2a05d74751fa405a6403234b14 | |
| parent | b71cdae2de4c83297c806662b462b2cf1a442ae6 (diff) | |
| download | homebrew-ebf6ba6ef5fef1139b034dd1f79ef1ec1c13d55e.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 #18186.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Homebrew/cmd/untap.rb | 2 |
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 |
