diff options
Diffstat (limited to 'test/driver.c')
| -rw-r--r-- | test/driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/driver.c b/test/driver.c index b365a5f71..acf79df05 100644 --- a/test/driver.c +++ b/test/driver.c @@ -5,6 +5,7 @@ ** against the current mruby implementation. */ + #include <stdlib.h> #include <string.h> @@ -72,7 +73,7 @@ main(int argc, char **argv) return EXIT_FAILURE; } - if (argc == 2 && strncmp(argv[1], "-v", 2) == 0) { + if (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v') { printf("verbose mode: enable\n\n"); mrb_gv_set(mrb, mrb_intern(mrb, "$mrbtest_verbose"), mrb_true_value()); } |
