diff options
| author | LightGuard <lightguard.jp@gmail.com> | 2013-01-21 20:02:01 -0700 |
|---|---|---|
| committer | LightGuard <lightguard.jp@gmail.com> | 2013-01-22 14:29:15 -0700 |
| commit | f5a8eadffc3cb551a392b72907f8eb2e19c79898 (patch) | |
| tree | 849f264f84a7041df4de7411b25dece366e87972 /bin | |
| parent | d5dbf88aea655deb3a944cae7dd13353278a3f4a (diff) | |
Really add the asciidoctor-safe
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/asciidoctor-safe | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/asciidoctor-safe b/bin/asciidoctor-safe new file mode 100755 index 00000000..ad370822 --- /dev/null +++ b/bin/asciidoctor-safe @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') + +require 'asciidoctor' +require 'asciidoctor/cli/options' +require 'asciidoctor/cli/invoker' + +# pass ARGV.dup? +options = Asciidoctor::Cli::Options.new({'safe' => Asciidoctor::SafeMode::SAFE}).parse! ARGV +invoker = Asciidoctor::Cli::Invoker.new(options) +invoker.invoke! +exit invoker.code |
