Sha256: c14d73197f61f962ae1e7dd588339b1d65e04d717fe5d681242dfd48fb542d0e
Contents?: true
Size: 765 Bytes
Versions: 10
Compression:
Stored size: 765 Bytes
Contents
#!/usr/bin/env ruby require "optparse" $: << "./lib/" require "murdoc" options = {} option_parser = OptionParser.new do |opts| opts.banner = "murdoc <input file> <output html>" opts.on("--[no-]syntax-highlight", "Highlight syntax using pygments") do |h| options[:highlight_source] = h end opts.on("-t", "--template [FILENAME]", "Use custom haml template for output") do |t| options[:template] = t end opts.on("-s", "--stylesheet [FILENAME]", "Use custom css stylesheet for output") do |s| options[:stylesheet] = s end opts.on_tail("-h", "--help", "Show this message") do puts opts exit end end option_parser.parse! if ARGV.size < 2 puts option_parser else Murdoc.generate_from_file(ARGV[0], ARGV[1], options) end
Version data entries
10 entries across 10 versions & 1 rubygems