Merge pull request #6936 from issyl0/fix-cmd-gist-logs-arg-parse-bug

cmd/gist-logs: Fix bug with parsing of command-line arguments
This commit is contained in:
Issy Long 2020-01-14 22:44:34 +00:00 committed by GitHub
commit 50354852f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,6 @@ module Homebrew
end
def gistify_logs(f)
gist_logs_args.parse
files = load_logs(f.logs)
build_time = f.logs.ctime
timestamp = build_time.strftime("%Y-%m-%d_%H-%M-%S")
@ -142,6 +140,8 @@ module Homebrew
end
def gist_logs
gist_logs_args.parse
raise FormulaUnspecifiedError if Homebrew.args.resolved_formulae.length != 1
Install.perform_preinstall_checks(all_fatal: true)