diff options
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/usage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/usage.rb b/lib/rdoc/usage.rb index da6593d89e..3e64cd6433 100644 --- a/lib/rdoc/usage.rb +++ b/lib/rdoc/usage.rb @@ -96,7 +96,7 @@ module RDoc # Display usage def RDoc.usage_no_exit(*args) - main_program_file, = caller[-1].split(/:/, 2) + main_program_file, = caller[-1].split(/:\d+/, 2) comment = File.open(main_program_file) do |file| find_comment(file) end |