lib/octopress/commands/new.rb in octopress-3.0.0.rc.1 vs lib/octopress/commands/new.rb in octopress-3.0.0.rc.2

- old
+ new

@@ -31,9 +31,10 @@ c.command(:post) do |c| c.syntax 'post <TITLE> [options]' c.description 'Add a new post to your Jekyll site.' CommandHelpers.add_page_options c c.option 'slug', '--slug SLUG', 'Use this slug in filename instead of sluggified post title.' + c.option 'dir', '--dir DIR', 'Create post at _posts/DIR/.' CommandHelpers.add_common_options c c.action do |args, options| options['title'] = args.first Post.new(options).write