Commit 6afe1384 authored by h2so5's avatar h2so5

Show version only once with '-v' option in mruby/mrbc

parent 87cd4c5e
......@@ -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