cmd/gist-logs: use named DSL.

This commit is contained in:
Mike McQuaid 2020-04-14 14:21:53 +01:00
parent 4fb649cad1
commit a11eacc143
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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)