-
-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bottle: Use Parser to parse args #3975
Conversation
Library/Homebrew/dev-cmd/bottle.rb
Outdated
@@ -500,7 +499,20 @@ def merge | |||
end | |||
|
|||
def bottle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be nice to move this method to the top of the file.
2246c91
to
16db651
Compare
Library/Homebrew/dev-cmd/bottle.rb
Outdated
switch "--no-commit" | ||
switch "--json" | ||
flag "--root-url" | ||
flag "--root_url" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can kill --root_url
now; it was a typod old option but nothing has used it for a very long time now.
Library/Homebrew/dev-cmd/bottle.rb
Outdated
flag "--root-url" | ||
flag "--root_url" | ||
end.parse | ||
if @args.merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return merge if @args.merge?
and then you can skip the else
16db651
to
528995c
Compare
528995c
to
41a05b6
Compare
Thanks again @GauthamGoli! |
brew style
with your changes locally?brew tests
with your changes locally?#1860