Sha256: 29b00ba00429b06b68a94d733975f4c899b8cb832cb75d7a9d8bf69033b1c839
Contents?: true
Size: 965 Bytes
Versions: 3
Compression:
Stored size: 965 Bytes
Contents
#!/usr/bin/env ruby if File.file?(asciidoctor_pdf = (File.expand_path '../../lib/asciidoctor/pdf.rb', __FILE__)) require asciidoctor_pdf else require 'asciidoctor/pdf' end require 'asciidoctor/cli' options = Asciidoctor::Cli::Options.new backend: 'pdf', header_footer: true # FIXME provide an API in Asciidoctor for sub-components to print version information unless ARGV != ['-v'] && (ARGV & ['-V', '--version']).empty? $stdout.write %(Asciidoctor PDF #{Asciidoctor::PDF::VERSION} using ) # NOTE the print_version method was added in Asciidoctor 1.5.2 if options.respond_to? :print_version options.print_version else puts %(Asciidoctor #{::Asciidoctor::VERSION} [http://asciidoctor.org]) end exit 0 end # FIXME This is a really bizarre API. Please make me simpler. case (result = options.parse! ARGV) when Integer exit result else invoker = Asciidoctor::Cli::Invoker.new options GC.start invoker.invoke! exit invoker.code end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-pdf-1.5.0.beta.1 | bin/asciidoctor-pdf |
asciidoctor-pdf-1.5.0.alpha.18 | bin/asciidoctor-pdf |
asciidoctor-pdf-1.5.0.alpha.17 | bin/asciidoctor-pdf |