lib/asciibook/command.rb in asciibook-0.0.5 vs lib/asciibook/command.rb in asciibook-0.1.0.pre.beta
- old
+ new
@@ -5,11 +5,11 @@
class Command
def self.execute(argv)
p = Mercenary::Program.new(:asciibook)
p.version Asciibook::VERSION
- p.description 'Asciibook is a ebook generator from Asciidoc to html/pdf/epub/mobi'
+ p.description 'Asciibook is a ebook generator from Asciidoc to html/pdf/epub'
p.syntax 'asciibook <command> [options]'
p.command(:new) do |c|
c.description 'Create a new book scaffold in PATH'
c.syntax 'new PATH'
@@ -41,11 +41,10 @@
# formats:
# - html
# - pdf
# - epub
- # - mobi
#
# theme_dir:
# template_dir:
# page_level: 1
#
@@ -60,10 +59,10 @@
end
p.command(:build) do |c|
c.description 'Build book'
c.syntax 'build [FILE|DIR]'
- c.option :formats, '--format FORMAT1[,FORMAT2[,FORMAT3...]]', Array, 'Formats you want to build, allow: html,pdf,epub,mobi, default is all.'
+ c.option :formats, '--format FORMAT1[,FORMAT2[,FORMAT3...]]', Array, 'Formats you want to build, allow: html,pdf,epub, default is all.'
c.option :theme_dir, '--theme-dir DIR', 'Theme dir.'
c.option :template_dir, '--template-dir DIR', 'Template dir.'
c.option :dest_dir, '--dest-dir DIR', 'Destination dir.'
c.option :page_level, '--page-level NUM', Integer, 'Page split base on section level, default is 1.'
c.option :plugins, '--plugin PLUGIN1[,PLUGIN2[,PLUGIN3...]]', Array, 'Require ruby gem or ruby script plugin.'