diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-10 17:10:19 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-10 17:10:19 +0000 |
| commit | 1e403a1aa5a562d7d7aa05e62e305a44b89815aa (patch) | |
| tree | 8f8c5c54c4a3ccc9b1833f4c283ca762a30fea3d /lib/rdoc/ri | |
| parent | 0801067d0ff4e05e86433d7f948f4f6f0a9904a7 (diff) | |
| download | ruby-1e403a1aa5a562d7d7aa05e62e305a44b89815aa.tar.gz ruby-1e403a1aa5a562d7d7aa05e62e305a44b89815aa.tar.xz ruby-1e403a1aa5a562d7d7aa05e62e305a44b89815aa.zip | |
ri now accepts options via RI environment variable
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
| -rw-r--r-- | lib/rdoc/ri/ri_options.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb index c62335c14..0e720a9c6 100644 --- a/lib/rdoc/ri/ri_options.rb +++ b/lib/rdoc/ri/ri_options.rb @@ -150,6 +150,7 @@ module RI end puts end + puts "Options may also be passed in the 'RI' environment varaible" exit 0 end end @@ -164,6 +165,11 @@ module RI @formatter = RI::TextFormatter.for("plain") @list_classes = false + old_argv = ARGV.dup + if ENV["RI"] + ARGV.replace(ENV["RI"].split.concat(ARGV)) + end + begin go = GetoptLong.new(*OptionList.options) |
