diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-30 14:22:26 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-30 14:22:26 +0000 |
commit | 8e94bb29ae5c33d988cba29f130ba0d0a7276b00 (patch) | |
tree | 17f3eb310a24fabe871f4f407bd2b98f6ccb270c /lib/rdoc/ri/ri_options.rb | |
parent | e80e14c7882d3955eb88d078f43822af030a1bf4 (diff) | |
download | ruby-8e94bb29ae5c33d988cba29f130ba0d0a7276b00.tar.gz |
ri now merges the documentation if it finds the same class in multiple places
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/ri_options.rb')
-rw-r--r-- | lib/rdoc/ri/ri_options.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb index ba420344f3..f59cdeda1c 100644 --- a/lib/rdoc/ri/ri_options.rb +++ b/lib/rdoc/ri/ri_options.rb @@ -208,7 +208,13 @@ module RI when "--list-names" then @list_names = true when "--no-pager" then @use_stdout = true when "--classes" then @list_classes = true - when "--doc-dir" then @doc_dir = arg + when "--doc-dir" + if File.directory?(arg) + @doc_dir = arg + else + $stderr.puts "Invalid directory: #{arg}" + exit 1 + end when "--format" @formatter = RI::TextFormatter.for(arg) |