diff --git a/bin/jekyll b/bin/jekyll index 0d491192..1cfc4749 100755 --- a/bin/jekyll +++ b/bin/jekyll @@ -2,13 +2,24 @@ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) +help = < ./_site + jekyll # . -> + jekyll # -> + + 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 @@ -67,14 +78,4 @@ if options[:auto] 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 # . -> - jekyll # -> - - Options: \ No newline at end of file +end \ No newline at end of file