gist-logs: use ARGV.resolved_formulae

This commit is contained in:
Xu Cheng 2015-05-17 20:27:43 +08:00
parent 04c274f727
commit c41c473513

View File

@ -131,12 +131,12 @@ module Homebrew
end
def gist_logs
if ARGV.formulae.length != 1
if ARGV.resolved_formulae.length != 1
puts "usage: brew gist-logs [--new-issue|-n] <formula>"
Homebrew.failed = true
return
end
gistify_logs(ARGV.formulae[0])
gistify_logs(ARGV.resolved_formulae[0])
end
end