Make Parser#parse return args.

This commit is contained in:
Markus Reiter 2020-07-23 01:22:25 +02:00
parent adc36a05ff
commit bf13db3367
3 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ module Homebrew
Homebrew.args = @args Homebrew.args = @args
@args_parsed = true @args_parsed = true
@parser @args
end end
def global_option?(name, desc) def global_option?(name, desc)

View File

@ -27,7 +27,7 @@ module Homebrew
end end
def mirror def mirror
mirror_args.parse args = mirror_args.parse
bintray_org = args.bintray_org || "homebrew" bintray_org = args.bintray_org || "homebrew"
bintray_repo = args.bintray_repo || "mirror" bintray_repo = args.bintray_repo || "mirror"

View File

@ -33,7 +33,7 @@ module Homebrew
end end
def pr_upload def pr_upload
pr_upload_args.parse args = pr_upload_args.parse
bintray_org = args.bintray_org || "homebrew" bintray_org = args.bintray_org || "homebrew"
bintray = Bintray.new(org: bintray_org) bintray = Bintray.new(org: bintray_org)