bin/dyn in dyndoc-ruby-1.0.25 vs bin/dyn in dyndoc-ruby-1.2.0

- old
+ new

@@ -1,9 +1,10 @@ #!/usr/bin/env ruby require 'dyndoc/document' +puts "bin" ;p $0 ## p Dyndoc.cfg_dir ## To be used for remote at the end args_saved=ARGV.dup @@ -33,11 +34,16 @@ Settings["cfg_dyn.format_doc"] = format.to_sym end opts.on('-t','--tags TAGS',Array,'filter tags') {|t| Settings["cfg_dyn.tag_tmpl"] = t} - opts.on('-C',"--content-only", "content only mode (no header!)") do + opts.on('-C',"--content_only", "content only mode (no header!)") do Settings["cfg_dyn.model_doc"] = "Content" + end + + opts.on('-x',"--exec_only", "exec only mode (no document!)") do + Settings["cfg_dyn.model_doc"] = "Content" + Settings["cfg_dyn.exec_mode"] = "yes" end opts.on('-c', '--cmd COMMAND','[a(rchive old)][r(emove old)][s(ave)][pdf(latex)]') {|c| cmd =[:make_content] cmd << :save_old if c.include? "a"