lib/frenchpress/cmd.rb in frenchpress-0.2 vs lib/frenchpress/cmd.rb in frenchpress-0.2.1

- old
+ new

@@ -4,11 +4,16 @@ # This is the command line interface for FrenchPress. class CMD < Thor class_option :dir desc 'init', 'Initialize a new frenchpress blog.' + option :url + option :title def init - FrenchPress.open(options[:dir]).new_blog + FrenchPress.open(options[:dir]).new_blog( + url: options[:url], + title: options[:title] + ) end desc 'post', 'Create a new post from given file or URL.' def post(*items) FrenchPress.open(options[:dir]).post(*items)