Abort with friendly message on no user or project

This commit is contained in:
Olle Jonsson 2017-10-19 09:00:40 +02:00
parent 4f640b74ac
commit 91ac00c1d3

View File

@ -20,7 +20,10 @@ module GitHubChangelogGenerator
abort [e, parser].join("\n")
end
abort(parser.to_s) unless options[:user] && options[:project]
unless options[:user] && options[:project]
warn "Tell us which user and project to work on. Options --user and --project, or settings to that effect."
abort(parser.to_s)
end
options.print_options