# File lib/ruby-vpi/rdoc.rb, line 26
26:   def RDoc.usage_from_file input_file, *args
27:     comment = File.open(input_file) do |file|
28:       find_comment(file)
29:     end
30: 
31:     comment = comment.gsub(/^\s*#/, '')
32: 
33:     markup = SM::SimpleMarkup.new
34:     flow_convertor = SM::ToFlow.new
35: 
36:     flow = markup.convert(comment, flow_convertor)
37: 
38:     format = "plain"
39: 
40:     unless args.empty?
41:       flow = extract_sections(flow, args)
42:     end
43: 
44:     options = RI::Options.instance
45:     if args = ENV["RI"]
46:       options.parse(args.split)
47:     end
48:     formatter = options.formatter.new(options, "")
49:     formatter.display_flow(flow)
50:   end