Sha256: 0629d48936a40164a9ac1a3cf1fe2ef6d767b5f1afc4f5cd6ec0ff3e9ecd148a
Contents?: true
Size: 1013 Bytes
Versions: 4
Compression:
Stored size: 1013 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'qed/document' options = {} usage = OptionParser.new do |usage| usage.banner = "Usage: qedoc [OPTIONS] <QEDFile1> [ <QEDFile2> ... ]" usage.on("-o", "--output [DIR]", "Output directory") do |dir| options[:output]= dir end usage.on("-t", "--title [TITLE]", "Title of Document") do |title| options[:title]= title end usage.on("--css [URI]", "Specify a URI for a CSS file add to HTML header.") do |uri| options[:css] = uri end usage.on("--dryrun", "") do options[:dryrun] = true end usage.on("-q", "--quiet", "") do options[:quiet] = true end usage.on_tail("-h", "--help", "display this help message") do puts usage exit end end usage.parse! options[:paths] = ARGV.dup #opts[:output] = cli.options[:file] #opts[:dryrun] = cli.options[:dryrun] #opts[:quiet] = cli.options[:quiet] #opts[:css] = cli.options[:css] #opts[:title] = cli.options[:title] doc = QED::Document.new(options) doc.generate
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qed-1.3 | bin/qedoc |
qed-1.2 | bin/qedoc |
qed-1.1.0 | bin/qedoc |
qed-1.0.0 | bin/qedoc |