# File lib/taskjuggler/apps/Tj3Man.rb, line 53 53: def appMain(requestedKeywords) 54: if @manual 55: UserManual.new.generate(@directory) 56: elsif requestedKeywords.empty? 57: puts @man.all.join("\n") 58: else 59: requestedKeywords.each do |keyword| 60: if (kws = @keywords[keyword, true]).nil? 61: $stderr.puts "No matches found for '#{keyword}'" 62: exit 1 63: elsif kws.length == 1 || kws.include?(keyword) 64: puts @man.to_s(keyword) 65: else 66: $stderr.puts "Multiple matches found for '#{keyword}':\n" + 67: "#{kws.join(', ')}" 68: return 1 69: end 70: end 71: end 72: 0 73: end
# File lib/taskjuggler/apps/Tj3Man.rb, line 35 35: def processArguments(argv) 36: super do 37: @opts.banner += This program can be used to generate the user manual in HTML format or to geta textual help for individual keywords. 38: @opts.on('-d', '--dir <directory>', String, 39: format('directory to put the manual')) do |dir| 40: @directory = dir 41: end 42: @opts.on('-m', '--manual', 43: format('Generate the user manual into the current directory ' + 44: 'or the directory specified with the -d option.')) do 45: @manual = true 46: end 47: end 48: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.