Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
f0270a58
Commit
f0270a58
authored
5 years ago
by
EricFromCanada
Browse files
Options
Downloads
Patches
Plain Diff
desc/audit: remove messages obviated by new arg parser
parent
e78836fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/cmd/desc.rb
+1
-5
1 addition, 5 deletions
Library/Homebrew/cmd/desc.rb
Library/Homebrew/dev-cmd/audit.rb
+2
-9
2 additions, 9 deletions
Library/Homebrew/dev-cmd/audit.rb
with
3 additions
and
14 deletions
Library/Homebrew/cmd/desc.rb
+
1
−
5
View file @
f0270a58
...
...
@@ -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?
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/dev-cmd/audit.rb
+
2
−
9
View file @
f0270a58
...
...
@@ -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_/
,
""
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment