metanorma/asciidoctor-rfc

View on GitHub
bin/asciidoctor-rfc2

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

require "asciidoctor/cli"
require "asciidoctor/rfc/v2/converter"
# require "asciidoctor-bibliography"

options = Asciidoctor::Cli::Options.new backend: "rfc2", header_footer: true
# FIXME This is a really bizarre API. Please make me simpler.

exit 0 if options.parse!(ARGV) == 0

invoker = Asciidoctor::Cli::Invoker.new options
GC.start
invoker.invoke!
exit invoker.code