#!/usr/bin/env ruby require File.join File.dirname(__FILE__), '../lib/asciidoctor-epub3' require 'asciidoctor/cli' options = Asciidoctor::Cli::Options.new backend: 'epub3' # FIXME This is a really bizarre API. Please make me simpler. if (options.parse! ARGV) == 0 exit 0 else invoker = Asciidoctor::Cli::Invoker.new options GC.start invoker.invoke! exit invoker.code end