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:
commit
50354852f4
@ -33,8 +33,6 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def gistify_logs(f)
|
def gistify_logs(f)
|
||||||
gist_logs_args.parse
|
|
||||||
|
|
||||||
files = load_logs(f.logs)
|
files = load_logs(f.logs)
|
||||||
build_time = f.logs.ctime
|
build_time = f.logs.ctime
|
||||||
timestamp = build_time.strftime("%Y-%m-%d_%H-%M-%S")
|
timestamp = build_time.strftime("%Y-%m-%d_%H-%M-%S")
|
||||||
@ -142,6 +140,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def gist_logs
|
def gist_logs
|
||||||
|
gist_logs_args.parse
|
||||||
|
|
||||||
raise FormulaUnspecifiedError if Homebrew.args.resolved_formulae.length != 1
|
raise FormulaUnspecifiedError if Homebrew.args.resolved_formulae.length != 1
|
||||||
|
|
||||||
Install.perform_preinstall_checks(all_fatal: true)
|
Install.perform_preinstall_checks(all_fatal: true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user