| Module | RDoc |
| In: |
Fixes the issue where, RDoc does not look at the driver file (jruby/bin/glassfish) for comments but rather takes it from glassfishgem/bin/glassfish
# File lib/rdoc_usage.rb, line 43
43: def RDoc.usage_no_exit(*args)
44: comment = File.open(File.join(File.dirname(__FILE__), %w(.. bin), File.basename($0))) do |file|
45: find_comment(file)
46: end
47:
48: comment = comment.gsub(/^\s*#/, '')
49:
50: markup = SM::SimpleMarkup.new
51: flow_convertor = SM::ToFlow.new
52:
53: flow = markup.convert(comment, flow_convertor)
54:
55: format = "plain"
56:
57: unless args.empty?
58: flow = extract_sections(flow, args)
59: end
60:
61: options = RI::Options.instance
62: if args = ENV["RI"]
63: options.parse(args.split)
64: end
65: formatter = options.formatter.new(options, "")
66: formatter.display_flow(flow)
67: end