bin/sprinkle in sprinkle-0.2.6 vs bin/sprinkle in sprinkle-0.3.0
- old
+ new
@@ -14,9 +14,13 @@
# NOTE: the option -p/--path= is given as an example, and should probably be replaced in your application.
OPTIONS = {}
MANDATORY_OPTIONS = %w( path )
+ARGV.each do |arg|
+ ENV[$1] = $2 if arg =~ /^(\w+)=(.*)$/
+end
+
parser = OptionParser.new do |opts|
opts.banner = <<BANNER
Sprinkle
========