diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-05 04:52:50 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-05 04:52:50 +0000 |
commit | 7336cf5424cd9adb91fb56005cf55b39410d9305 (patch) | |
tree | 668b2a34ef8624b77053b94564a13032593075bd /lib/rdoc/options.rb | |
parent | 90d913613c6992b326b1e0f2c18089bb78196209 (diff) |
Add --ri-system option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r-- | lib/rdoc/options.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index ab99c18b86..0d99a5438e 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -198,6 +198,12 @@ class Options "stored in a site-wide directory, making them accessible\n"+ "to others, so special privileges are needed." ], + [ "--ri-system", "-Y", nil, + "generate output for use by 'ri.' The files are\n" + + "stored in a system-level directory, making them accessible\n"+ + "to others, so special privileges are needed. This option\n"+ + "is intended to be used during Ruby installations" ], + [ "--show-hash", "-H", nil, "A name of the form #name in a comment\n" + "is a possible hyperlink to an instance\n" + @@ -431,9 +437,14 @@ class Options when "--include" @rdoc_include.concat arg.split(/\s*,\s*/) - when "--ri", "--ri-site" + when "--ri", "--ri-site", "--ri-system" @generator_name = "ri" - @op_dir = opt == "--ri" ? RI::Paths::HOMEDIR : RI::Paths::SITEDIR + @op_dir = case opt + when "--ri" then RI::Paths::HOMEDIR + when "--ri-site" then RI::Paths::SITEDIR + when "--ri-system" then RI::Paths::SYSDIR + else fail opt + end setup_generator(generators) when "--tab-width" |