bin/hershey in hershey-0.0.7 vs bin/hershey in hershey-0.0.8

- old
+ new

@@ -3,19 +3,23 @@ require 'hershey' require 'optparse' options = {} OptionParser.new do |opts| - opts.banner = "Usage: hershey [options]" + opts.banner = "Usage: hershey [options]\nVersion: #{Hershey::VERSION}" + opts.on("-v", "--version", "Print version info") do + puts "Hershey Vector Fonts CLI Tool. Version: #{Hershey::VERSION}" + exit + end + opts.on("-w", "--width WIDTH", Integer, "Width of the pages") do |vars| options[:width] = vars end opts.on("-h", "--height HEIGHT", Integer, "The height per page (defaults to 8.5x11 ratio)") do |f| options[:height] = f end - opts.on("-i", "--input INFILE", "The input file (required)") do |f| options[:input] = f end