Make Parser#parse
return args
.
This commit is contained in:
parent
adc36a05ff
commit
bf13db3367
@ -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)
|
||||||
|
@ -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"
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user