Add options to def self.user_and_project_from_git to fix parser.rb:193 wrong number of arguments (1 for 0)

This commit is contained in:
Steve Gilvarry 2015-11-12 07:55:54 +11:00
parent 645f96ace6
commit 3fdf0c64df

View File

@ -190,7 +190,7 @@ module GitHubChangelogGenerator
} }
end end
def self.user_and_project_from_git def self.user_and_project_from_git(options)
if options[:user].nil? || options[:project].nil? if options[:user].nil? || options[:project].nil?
detect_user_and_project(options, ARGV[0], ARGV[1]) detect_user_and_project(options, ARGV[0], ARGV[1])
end end