diff --git a/bin/jekyll b/bin/jekyll index 3df10e4f..309ffc91 100755 --- a/bin/jekyll +++ b/bin/jekyll @@ -5,14 +5,12 @@ $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib }) require 'commander/import' require 'jekyll' -# Details about Jekyll program :name, 'jekyll' program :version, Jekyll::VERSION program :description, 'Jekyll is a blog-aware, static site generator in Ruby' default_command :help -# Global options available to every command global_option '-s', '--source [DIR]', 'Source directory (defaults to ./)' global_option '-d', '--destination [DIR]', 'Destination directory (defaults to ./_site)' global_option '--safe', 'Safe mode (defaults to false)' @@ -56,9 +54,9 @@ command :serve do |c| end end -command :migrate do |c| - c.syntax = 'jekyll migrate [options]' - c.description = 'Migrate your own blog to Jekyll' +command :import do |c| + c.syntax = 'jekyll import [options]' + c.description = 'Import your old blog to Jekyll' c.option '--file', 'File to migrate from' c.option '--dbname', 'Database name to migrate from'