summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-12 14:14:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-12 14:14:32 +0000
commita8656ef8df3871edc10728bc82a5874464bd6e92 (patch)
tree66ad1f56b06d1c1c2ac51ffde324e6345fc8ac69 /ruby.c
parentdf6e07822bf0748e9ec6c2f227ce531203c6db38 (diff)
downloadruby-a8656ef8df3871edc10728bc82a5874464bd6e92.tar.gz
ruby-a8656ef8df3871edc10728bc82a5874464bd6e92.tar.xz
ruby-a8656ef8df3871edc10728bc82a5874464bd6e92.zip
* ruby.c (proc_options): -W should be allowed in RUBYOPT
environment variable. [ruby-core:12118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index ad3c17297..86230735c 100644
--- a/ruby.c
+++ b/ruby.c
@@ -821,7 +821,7 @@ proc_options(int argc, char **argv)
}
if (!*s)
break;
- if (!strchr("IdvwrK", *s))
+ if (!strchr("IdvwWrK", *s))
rb_raise(rb_eRuntimeError,
"illegal switch in RUBYOPT: -%c", *s);
s = moreswitches(s);