From b294a022671fd6740e7f3a42ce19dbaa11dd7d6c Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 22 Oct 2007 15:29:53 +0000 Subject: * ruby.c (proc_options): allow space after -E (encoding) option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index ffdf45a15..8b14419e7 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; -- cgit