Merge pull request #1163 from h2so5/show-version-once

Show version only once with '-v' option in mruby/mrbc
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-09 09:46:34 -07:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
args->check_syntax = 1;
break;
case 'v':
mrb_show_version(mrb);
if(!args->verbose) mrb_show_version(mrb);
args->verbose = 1;
break;
case 'g':
+1 -1
View File
@@ -109,7 +109,7 @@ append_cmdline:
}
break;
case 'v':
mrb_show_version(mrb);
if (!args->verbose) mrb_show_version(mrb);
args->verbose = 1;
break;
case '-':