diff options
| author | h2so5 <[email protected]> | 2013-04-09 14:53:33 +0900 |
|---|---|---|
| committer | h2so5 <[email protected]> | 2013-04-09 14:57:46 +0900 |
| commit | 6afe1384126ac8956c7eeb02a73450dcb8fa7c18 (patch) | |
| tree | fa51e75400c842d60f0c60020891baefd2190237 | |
| parent | 87cd4c5ecc69208018c4d9deea63d566974561dd (diff) | |
| download | mruby-6afe1384126ac8956c7eeb02a73450dcb8fa7c18.tar.gz mruby-6afe1384126ac8956c7eeb02a73450dcb8fa7c18.zip | |
Show version only once with '-v' option in mruby/mrbc
| -rw-r--r-- | tools/mrbc/mrbc.c | 2 | ||||
| -rw-r--r-- | tools/mruby/mruby.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index 8698086ff..9eb7e9614 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -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': diff --git a/tools/mruby/mruby.c b/tools/mruby/mruby.c index f554ff4df..b8d82b270 100644 --- a/tools/mruby/mruby.c +++ b/tools/mruby/mruby.c @@ -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 '-': |
