From 88bd349ca9f0906f37282e6dec38dfa14c278736 Mon Sep 17 00:00:00 2001 From: Lucas Jenss Date: Sun, 31 Mar 2013 22:27:38 +0200 Subject: [PATCH] Fix import command parameters Apparently, the Commander gem treats options as boolean values when one does not indicate that a certain options is followed by a string. This led to the jekyll-import gem only receiving booleans instead of dbname/user/pwd... --- bin/jekyll | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/jekyll b/bin/jekyll index 2b36463a..5d3b229b 100755 --- a/bin/jekyll +++ b/bin/jekyll @@ -92,12 +92,12 @@ command :import do |c| c.syntax = 'jekyll import [options]' c.description = 'Import your old blog to Jekyll' - c.option '--source', 'Source file or URL to migrate from' - c.option '--file', 'File to migrate from' - c.option '--dbname', 'Database name to migrate from' - c.option '--user', 'Username to use when migrating' - c.option '--pass', 'Password to use when migrating' - c.option '--host', 'Host address to use when migrating' + c.option '--source STRING', 'Source file or URL to migrate from' + c.option '--file STRING', 'File to migrate from' + c.option '--dbname STRING', 'Database name to migrate from' + c.option '--user STRING', 'Username to use when migrating' + c.option '--pass STRING', 'Password to use when migrating' + c.option '--host STRING', 'Host address to use when migrating' c.action do |args, options| begin