bin/guider in guider-0.0.4 vs bin/guider in guider-0.0.5

- old
+ new

@@ -9,10 +9,11 @@ options = { :output => Dir.pwd + "/out", :link_url => "http://localhost/extjs/", :tpl_dir => File.dirname(File.dirname(__FILE__)) + "/template", + :warnings => false, } input_files = OptionParser.new do |opts| opts.banner = "Generates a guide.\n\n" + "Usage: guider <guides/dir/>\n\n" @@ -29,16 +30,20 @@ opts.on("--index=PATH", "The guides.json file to create index.html from.") do |path| options[:index] = path end + opts.on("--warnings", "Enables warnings.") do + options[:warnings] = true + end + opts.on("-h", "--help", "Show this help message") do puts opts exit end opts.on("--version", "Prints guider version number.") do - puts "Guider 0.0.4" + puts "Guider 0.0.5" exit end end.parse! if input_files.length == 1