This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: UTF-8 | |
unless defined? ASCIIDOCTOR_PROJECT_DIR | |
$: << File.dirname(__FILE__); $:.uniq! | |
require 'test_helper' | |
end | |
context 'Converter' do | |
context 'ManPageConverter' do | |
test 'should generate multiple authors in header' do | |
input = <<-EOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(args: Array[String]) { | |
// Required positional arguments by key in options | |
val required = List('arg1, 'arg2) | |
// Options with value | |
val optional = Map("--option|-o" -> 'option, "-t|--test" -> 'test) | |
// Flags | |
val flags = Map("--flag1|-f" -> 'flag1, "--flag2" -> 'flag2) |