summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-07 02:34:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-07 02:34:33 +0000
commit7aab062ef3772c7e8e50fc872a1647918c76dbba (patch)
tree3bfaf1207aef12c325d9dd7a21ae9fe9a7788c06 /ruby.c
parent1491c4189a67a1a2ca0347e243190375dd4e002c (diff)
version.c: no exit in ruby_show_copyright
* include/ruby/backward.h (ruby_show_copyright_to_die): for source code backward compatibility. * ruby.c (process_options): return Qtrue to exit the process successfully. * version.c (ruby_show_copyright): no longer exit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 0a39bfb..dfbf714 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1414,6 +1414,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
}
if (opt->dump & DUMP_BIT(copyright)) {
ruby_show_copyright();
+ return Qtrue;
}
if (!opt->e_script) {