From f7e91998416773bdf70ef2d71d5bb9c60dee87a7 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Thu, 11 Jun 2015 16:10:13 +0300 Subject: [PATCH] Fix #246 --- lib/github_changelog_generator/parser.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/parser.rb b/lib/github_changelog_generator/parser.rb index 892a5ad..6750d85 100644 --- a/lib/github_changelog_generator/parser.rb +++ b/lib/github_changelog_generator/parser.rb @@ -13,7 +13,9 @@ module GitHubChangelogGenerator parser.parse! - detect_user_and_project(options) + if options[:user].nil? || options[:project].nil? + detect_user_and_project(options) + end if !options[:user] || !options[:project] puts parser.banner