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...
This commit is contained in:
Lucas Jenss 2013-03-31 22:27:38 +02:00
parent 58f64e8269
commit 88bd349ca9
1 changed files with 6 additions and 6 deletions

View File

@ -92,12 +92,12 @@ command :import do |c|
c.syntax = 'jekyll import <platform> [options]' c.syntax = 'jekyll import <platform> [options]'
c.description = 'Import your old blog to Jekyll' c.description = 'Import your old blog to Jekyll'
c.option '--source', 'Source file or URL to migrate from' c.option '--source STRING', 'Source file or URL to migrate from'
c.option '--file', 'File to migrate from' c.option '--file STRING', 'File to migrate from'
c.option '--dbname', 'Database name to migrate from' c.option '--dbname STRING', 'Database name to migrate from'
c.option '--user', 'Username to use when migrating' c.option '--user STRING', 'Username to use when migrating'
c.option '--pass', 'Password to use when migrating' c.option '--pass STRING', 'Password to use when migrating'
c.option '--host', 'Host address to use when migrating' c.option '--host STRING', 'Host address to use when migrating'
c.action do |args, options| c.action do |args, options|
begin begin