bin/mustache in mustache-0.99.2 vs bin/mustache in mustache-0.99.3

- old
+ new

@@ -9,11 +9,11 @@ class Mustache class CLI # Return a structure describing the options. def self.parse_options(args) opts = OptionParser.new do |opts| - opts.banner = "Usage: mustache [-c] [-t] FILE ..." + opts.banner = "Usage: mustache [-c] [-t] [-r library] FILE ..." opts.separator " " opts.separator "Examples:" opts.separator " $ mustache data.yml template.mustache" @@ -38,9 +38,13 @@ opts.on("-t", "--tokens FILE", "Print the tokenized form of a given template.") do |file| require 'pp' pp Mustache::Template.new(File.read(file)).tokens exit + end + + opts.on('-r', '--require LIB', 'Require a Ruby library before running.') do |lib| + require lib end opts.separator "Common Options:" opts.on("-v", "--version", "Print the version") do |v|