cmd/gist-logs: use named DSL.
This commit is contained in:
parent
4fb649cad1
commit
a11eacc143
@ -28,7 +28,7 @@ module Homebrew
|
|||||||
"be accessible with its link."
|
"be accessible with its link."
|
||||||
switch :verbose
|
switch :verbose
|
||||||
switch :debug
|
switch :debug
|
||||||
max_named 1
|
named :formula
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -142,8 +142,6 @@ module Homebrew
|
|||||||
def gist_logs
|
def gist_logs
|
||||||
gist_logs_args.parse
|
gist_logs_args.parse
|
||||||
|
|
||||||
raise FormulaUnspecifiedError if args.resolved_formulae.length != 1
|
|
||||||
|
|
||||||
Install.perform_preinstall_checks(all_fatal: true)
|
Install.perform_preinstall_checks(all_fatal: true)
|
||||||
Install.perform_build_from_source_checks(all_fatal: true)
|
Install.perform_build_from_source_checks(all_fatal: true)
|
||||||
gistify_logs(args.resolved_formulae.first)
|
gistify_logs(args.resolved_formulae.first)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user