1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Convert RDoc to OptionParser, clean up -h output, namespace Options under RDoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2008-01-07 06:56:46 +00:00
parent b9127221e5
commit 4b93d732e4
13 changed files with 643 additions and 602 deletions

View file

@ -21,7 +21,7 @@
# search path if necessary.
def adjust_for_existing_rdoc(path)
$stderr.puts %{
It seems as if you have a previously-installed RDoc in
the directory #{path}.
@ -44,7 +44,7 @@ def adjust_for_existing_rdoc(path)
end
$:.each do |path|
if /site_ruby/ =~ path
if /site_ruby/ =~ path
rdoc_path = File.join(path, 'rdoc', 'rdoc.rb')
if File.exist?(rdoc_path)
adjust_for_existing_rdoc(path)
@ -60,8 +60,8 @@ require 'rdoc/rdoc'
begin
r = RDoc::RDoc.new
r.document(ARGV)
rescue RDoc::RDocError => e
r.document ARGV
rescue RDoc::Error => e
$stderr.puts e.message
exit(1)
exit 1
end