do not use DATA, rubygems freaks out

This commit is contained in:
Tom Preston-Werner 2008-12-08 15:46:27 -08:00
parent f5c727fadb
commit 8dff479a13
1 changed files with 13 additions and 12 deletions

View File

@ -2,13 +2,24 @@
$:.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
@ -68,13 +79,3 @@ if options[:auto]
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: