aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index ffdf45a151..8b14419e76 100644
--- a/ruby.c
+++ b/ruby.c
@@ -689,7 +689,8 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
case 'E':
if (!*++s) {
- rb_raise(rb_eRuntimeError, "missing argument for -E");
+ s = argv[1];
+ argc--, argv++;
}
goto encoding;