bin/asciidoctor-epub3 in asciidoctor-epub3-1.5.0.alpha.10 vs bin/asciidoctor-epub3 in asciidoctor-epub3-1.5.0.alpha.11

- old
+ new

@@ -12,15 +12,10 @@ # FIXME: provide an API in Asciidoctor for sub-components to print version information unless ARGV != ['-v'] && (ARGV & ['-V', '--version']).empty? require_relative '../lib/asciidoctor-epub3/version' $stdout.write %(Asciidoctor EPUB3 #{Asciidoctor::Epub3::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 + options.print_version exit 0 end # FIXME: This is a really bizarre API. Please make me simpler. case (result = options.parse! ARGV)