bin/jekyll in mojombo-jekyll-0.1.3 vs bin/jekyll in mojombo-jekyll-0.1.4
- old
+ new
@@ -1,16 +1,27 @@
#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
+help = <<HELP
+Jekyll is a blog-aware, static site generator.
+
+Basic Command Line Usage:
+ jekyll # . -> ./_site
+ jekyll <path to write generated site> # . -> <path>
+ jekyll <path to source> <path to write generated site> # <path> -> <path>
+
+ Options:
+HELP
+
require 'optparse'
require 'jekyll'
options = {}
opts = OptionParser.new do |opts|
- opts.banner = DATA.read
+ opts.banner = help
opts.on("--auto", "Auto-regenerate") do
options[:auto] = true
end
end
@@ -65,16 +76,6 @@
dw.start
loop { sleep 1000 }
else
Jekyll.process(source, destination)
-end
-
-__END__
-Jekyll is a blog-aware, static site generator.
-
-Basic Command Line Usage:
- jekyll # . -> ./_site
- jekyll <path to write generated site> # . -> <path>
- jekyll <path to source> <path to write generated site> # <path> -> <path>
-
- Options:
+end
\ No newline at end of file