diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-14 07:10:22 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-14 07:10:22 +0000 |
commit | c884219d9668b3696028588569d3fafdb6ed78a0 (patch) | |
tree | 7f566b5ed87de54cf2339847d8fddf13aca057f6 /ruby.1 | |
parent | a31e2da12c8e03517515c940c90f4e4c67da3b0b (diff) | |
download | ruby-c884219d9668b3696028588569d3fafdb6ed78a0.tar.gz |
* ruby.1: a patch to describe --encoding. a patch from Yugui
<yugui AT yugui.sakura.ne.jp> in [ruby-dev:33079].
* ruby.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.1')
-rw-r--r-- | ruby.1 | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -13,14 +13,17 @@ .Op Fl Sacdlnpswvy .Op Fl 0 Ns Op Ar octal .Op Fl C Ar directory +.Op Fl E Ar encoding .Op Fl F Ar pattern .Op Fl I Ar directory .Op Fl K Ar c .Op Fl T Ns Op Ar level +.Op Fl W Ns Op Ar level .Op Fl e Ar command .Op Fl i Ns Op Ar extension .Op Fl r Ar library .Op Fl x Ns Op Ar directory +.Op Fl -disable-gems .Op Fl - .Op Ar program_file .Op Ar argument ... @@ -132,8 +135,13 @@ makes Ruby read whole file at once as a single string since there is no legal character with that value. .Pp .It Fl C Ar directory +.It Fl X Ar directory Causes Ruby to switch to the directory. .Pp +.It Fl E Ar encname +.It Fl -encoding Ar encname +Specifies the encoding for the program codes. +.Pp .It Fl F Ar pattern Specifies input field separator .Pf ( Li "$;" ) . @@ -162,6 +170,30 @@ on machines that don't support it, in the following manner: .It Fl T Ns Op Ar level Turns on taint checks at the specified level (default 1). .Pp +.It Fl W Ns Op Ar level +Turns on verbose mode at the specified level, without printing version +message at the beginning. The level can be; +.Bl -hang -offset indent +.It Sy 0 +Verbose mode is "silence". It sets the +.Li "$VERBOSE" +to nil. +.Pp +.It Sy 1 +Verbose mode is "medium". It sets the +.Li "$VERBOSE" +to false. +.Pp +.It Sy 2 (default) +Verbose mode is "verbose". It sets the +.Li "$VERBOSE" +to true. +.Fl W Ns +2 is same as +.Fl w +. +.El +.Pp .It Fl a Turns on auto-split mode when used with .Fl n @@ -304,6 +336,10 @@ before executing script. Turns on compiler debug mode. Ruby will print a bunch of internal state messages during compiling scripts. You don't have to specify this switch, unless you are going to debug the Ruby interpreter. +.Pp +.It Fl -disable-gems +Disables RubyGems libraries. By default, Ruby can load the latest +version of the each installed gems. .El .Pp .Sh ENVIRONMENT |