Commit f607fd68 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

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

Show version only once with '-v' option in mruby/mrbc
parents c5c3fa19 6afe1384
......@@ -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':
......
......@@ -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 '-':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment