diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-11-20 23:55:12 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-11-21 00:44:03 -0700 |
| commit | 7b07870167feeb05c59bb7b40cb3da5fb72f6d2d (patch) | |
| tree | 8a20d66d341dedf4d6a550c937ce74de5d827d24 | |
| parent | 2b56cc483768762cbb18a0278cdf4095dd38944c (diff) | |
remove check for print_version method
| -rwxr-xr-x | bin/asciidoctor-pdf | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/asciidoctor-pdf b/bin/asciidoctor-pdf index c65c6d9d..3dadad94 100755 --- a/bin/asciidoctor-pdf +++ b/bin/asciidoctor-pdf @@ -13,12 +13,7 @@ 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 + options.print_version exit 0 end |
