Sha256: cb1c3e9aa15d68ead194915eb0bc988b40f4f3cf276df5f87d1b2b5c59e89ec6

Contents?: true

Size: 1.19 KB

Versions: 30

Compression:

Stored size: 1.19 KB

Contents

=begin
= rd2html-opt.rb
sub-OptionParser for rd2html-lib.rb.
=end
require "optparse"

q = ARGV.options

q.on_tail("rd2html-lib options:")


#q.on_tail("--use-numbering-anchor",
#	  "use number for anchor name (old style)") do
#  $Visitor.use_old_anchor = true
#end

q.on_tail("--output-rbl",
	  "output external Label file") do
  $Visitor.output_rbl = true
end

q.on_tail("--with-css=FILE",
	  String,
	  "use FILE as CSS of output HTML") do |i|
  $Visitor.css = i
end

q.on_tail("--html-charset=CHARSET",
	  String,
	  "indicate CHARSET as charset(char encoding)") do |i|
  $Visitor.charset = i
end

q.on_tail("--html-lang=LANG",
	  String,
	  "indicate LANG as lang attribute of html") do |i|
  $Visitor.lang = i
end
  
q.on_tail("--html-title=TITLE",
	  String,
	  "content of TITLE element of HTML") do |i|
  $Visitor.title = i
end

q.on_tail("--html-link-rel=REL",
	  String,
	  "add forward LINK element.(\"<rel>:<href>\")") do |i|
  if /(\w+):(.+)/ =~ i
    $Visitor.html_link_rel[$1] = $2
  else
    # warning
  end
end

q.on_tail("--html-link-rev=REV",
	  String,
	  "add reverse LINK element.(\"<rev>:<href>\")") do |i|
  if /(\w+):(.+)/ =~ i
    $Visitor.html_link_rev[$1] = $2
  else
    # warning
  end
end



Version data entries

30 entries across 29 versions & 4 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-5.0.8 vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-5.0.5 vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-5.0.4 vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/rdtool-0.6.38/lib/rd/rd2html-opt.rb
nishidayuya-rd2odt-0.1.1.20090701.01 lib/rd2odt/rdtool/rd/rd2html-opt.rb
nishidayuya-rd2odt-0.1.1.20090704.01 lib/rd2odt/rdtool/rd/rd2html-opt.rb
nishidayuya-rd2odt-0.1.1.20090706.01 lib/rd2odt/rdtool/rd/rd2html-opt.rb
nishidayuya-rd2odt-0.1.1 lib/rd2odt/rdtool/rd/rd2html-opt.rb
tdiary-3.2.2.20130518 vendor/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-3.2.2.20130508 vendor/rdtool-0.6.38/lib/rd/rd2html-opt.rb
tdiary-3.2.2.20130507 vendor/rdtool-0.6.38/lib/rd/rd2html-opt.rb
rdtool-0.6.38 lib/rd/rd2html-opt.rb
rdtool-0.6.37 lib/rd/rd2html-opt.rb
rdtool-0.6.36 lib/rd/rd2html-opt.rb
rdtool-0.6.35 lib/rd/rd2html-opt.rb
rdtool-0.6.34 lib/rd/rd2html-opt.rb
rdtool-0.6.33 lib/rd/rd2html-opt.rb
rdtool-0.6.32 lib/rd/rd2html-opt.rb