Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a require option

  • Loading branch information...
commit eadf9b9f4b92ba5e62cc69a2d9afc16534b4fc39 1 parent a282093
Laurent Bossavit authored defunkt committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/mustache
6 bin/mustache
View
@@ -11,7 +11,7 @@ class Mustache
# 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 " "
@@ -42,6 +42,10 @@ class Mustache
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|
Please sign in to comment.
Something went wrong with that request. Please try again.