lib/patricia/cli.rb in patricia-0.0.1 vs lib/patricia/cli.rb in patricia-0.1.1

- old
+ new

@@ -14,10 +14,15 @@ opts.banner = 'Usage: patricia <markup-dir> [output-dir] [options]' opts.separator '---------------------------------------------------' opts.separator '' opts.separator 'Options:' + opts.on('-p', '--port PORT', Integer, + 'Port to run the server on') do |v| + options[:port] = v + end + opts.on('-c', '--css DIR', 'Directory with CSS files to be', 'included in the output', ' (All .css files in this directory', ' and its subdirectories will be', ' hovered up.)') do |v| options[:css] = File.expand_path(v.strip) @@ -33,12 +38,16 @@ ' hovering over elements in the', ' sidebar (default: hide)') do |v| options[:tooltips] = v end - opts.on('-p', '--port PORT', Integer, - 'Port to run the server on') do |v| - options[:port] = v + opts.on('-e', '--editor', 'Enable markup editor') do |v| + options[:editor] = v + end + + opts.on('-g', '--gfm', + 'Use GitHub Flavored Markdown for all', ' rendering') do |v| + options[:gfm] = v end # Description opts.separator ''