summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2013-01-20 13:29:57 -0600
committerLightGuard <lightguard.jp@gmail.com>2013-01-22 14:26:48 -0700
commit99b5206c1ec93a1eff6544917a39aa6a72240b84 (patch)
treec280b88c3f06ecb2a675d9edc4efa86f8856cb18 /bin
parentdf4e93966ca5fa4536440936ac23c2d309490717 (diff)
edits for cli pull request
- move imports to bin/asciidoctor - set built-in attributes for doc info (set in load API down the road) - output to stdout if out file is '-' - calculate output file based on input file if not specified (to comply w/ AsciiDoc) - change attribute keys to strings (as Asciidoctor expects) - change doctype options from symbols to strings - make doctype apply to all backends - add options for backends - add option to enable compact output - add option to set safe mode levels - make suppress header_footer work - add option to set eRuby implementation - automatically set value to 1 for attribute w/o value - add files to gemspec
Diffstat (limited to 'bin')
-rwxr-xr-xbin/asciidoctor5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/asciidoctor b/bin/asciidoctor
index cdf90864..55e08659 100755
--- a/bin/asciidoctor
+++ b/bin/asciidoctor
@@ -1,8 +1,11 @@
#!/usr/bin/env ruby
-$:.unshift File.dirname(__FILE__) + '/../lib'
+$:.unshift File.join(File.dirname(__FILE__), '../lib')
require 'rubygems'
+require 'optparse'
+require 'asciidoctor'
+require 'asciidoctor/cli/options'
require 'asciidoctor/cli/invoker'
Asciidoctor::Cli::Invoker.new(ARGV).invoke!