bin/parse in parse_a_changelog-1.0.0 vs bin/parse in parse_a_changelog-1.0.1

- old
+ new

@@ -1,8 +1,15 @@ #!/usr/bin/env ruby require_relative '../lib/parse_a_changelog.rb' +if ARGV.empty? || ARGV[0].empty? + puts "usage: parse <changelog file>" + exit 1 +else + puts "Parsing #{ARGV[0]}" +end + begin ParseAChangelog.parse(ARGV[0]) puts "SUCCESS" rescue ParseAChangelog::ParseError => e puts "ERROR: #{e.to_s}"