desc/audit: remove messages obviated by new arg parser
This commit is contained in:
parent
e78836fda9
commit
f0270a585c
@ -40,11 +40,7 @@ module Homebrew
|
||||
search_type << :either if args.search
|
||||
search_type << :name if args.name
|
||||
search_type << :desc if args.description
|
||||
if search_type.size > 1
|
||||
odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description."
|
||||
elsif search_type.present? && ARGV.named.empty?
|
||||
odie "You must provide a search term."
|
||||
end
|
||||
odie "You must provide a search term." if search_type.present? && ARGV.named.empty?
|
||||
|
||||
results = if search_type.empty?
|
||||
raise FormulaUnspecifiedError if ARGV.named.empty?
|
||||
|
@ -57,7 +57,8 @@ module Homebrew
|
||||
switch :verbose
|
||||
switch :debug
|
||||
conflicts "--only", "--except"
|
||||
conflicts "--only-cops", "--except-cops"
|
||||
conflicts "--only-cops", "--except-cops", "--strict"
|
||||
conflicts "--only-cops", "--except-cops", "--only"
|
||||
end
|
||||
end
|
||||
|
||||
@ -88,13 +89,6 @@ module Homebrew
|
||||
|
||||
only_cops = args.only_cops
|
||||
except_cops = args.except_cops
|
||||
|
||||
if only_cops && except_cops
|
||||
odie "--only-cops and --except-cops cannot be used simultaneously!"
|
||||
elsif (only_cops || except_cops) && (strict || args.only)
|
||||
odie "--only-cops/--except-cops and --strict/--only cannot be used simultaneously!"
|
||||
end
|
||||
|
||||
options = { fix: args.fix? }
|
||||
|
||||
if only_cops
|
||||
@ -995,7 +989,6 @@ module Homebrew
|
||||
def audit
|
||||
only_audits = @only
|
||||
except_audits = @except
|
||||
odie "--only and --except cannot be used simultaneously!" if only_audits && except_audits
|
||||
|
||||
methods.map(&:to_s).grep(/^audit_/).each do |audit_method_name|
|
||||
name = audit_method_name.gsub(/^audit_/, "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user