aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-26 10:36:27 -0700
committerAdam Vandenberg2014-05-27 21:03:05 -0700
commitdc04731ce11109836b337814ed336b80b64dd6e4 (patch)
tree5bd44e50f361d493f8b583b2b1851229f0653ccd /Library/Homebrew
parent355e06d433babe116156c126ae10ef44554e2b2b (diff)
downloadhomebrew-dc04731ce11109836b337814ed336b80b64dd6e4.tar.bz2
--help and --version only apply as first argument
This fixes external commands that provide their own help and version subcommands. Closes #26755.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ARGV.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 9f76338d0..25c2f882a 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -149,14 +149,6 @@ module HomebrewArgvExtension
include? '--force-bottle'
end
- def help?
- empty? || grep(/(-h$|--help$|--usage$|-\?$|help$)/).any?
- end
-
- def version?
- include? '--version'
- end
-
# eg. `foo -ns -i --bar` has three switches, n, s and i
def switch? switch_character
return false if switch_character.length > 1