Skip to content

Commit

Permalink
Add a require option
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Bossavit authored and defunkt committed Mar 19, 2011
1 parent a282093 commit eadf9b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/mustache
Expand Up @@ -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 " "

Expand Down Expand Up @@ -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|
Expand Down

0 comments on commit eadf9b9

Please sign in to comment.