Skip to content

Commit baea4a5

Browse files
committed
rubyfying
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40943
1 parent 79e93aa commit baea4a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parse.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def parse(opts, args)
5050
Profiler__::stop_profile
5151
Profiler__::print_profile($stderr)
5252
elsif opts.time
53-
require 'time'
53+
require 'time' # TODO: switch to benchmark
5454
t0 = Time.new
5555
document = p.send(opts.parsemethod, *args)
5656
t1 = Time.new
@@ -115,7 +115,7 @@ def printOutput(parser, document, opts)
115115
end
116116

117117
opts.on("-f", "--fragment", "Parse as a fragment") do |parse|
118-
options.parsemethod = :parseFragment
118+
options.parsemethod = :parse_fragment
119119
end
120120

121121
opts.separator ""

0 commit comments

Comments
 (0)