summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-23 05:54:23 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-23 05:54:23 +0000
commit04444e9535d4e95ba2cf9b9239f61153aa798d12 (patch)
tree073d8c932dc5ccd0b4b95388eb348440e6e7a405 /ruby.c
parent747f9a2734d455024c24b23eecb8f71ea1ac5275 (diff)
* ruby.c (proc_options): -v should not print version if
proc_options called via moreswitches(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2494 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 06ad8a48d3..16c58c72a7 100644
--- a/ruby.c
+++ b/ruby.c
@@ -438,7 +438,7 @@ proc_options(argc, argv)
goto reswitch;
case 'v':
- if (verbose) {
+ if (argv0 == 0 || verbose) {
s++;
goto reswitch;
}