Unverified Commit 5eb08a0d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4846 from shuujii/fix-mruby---verbose-regression-by--4827

Fix `mruby --verbose` (regression by #4827)
parents 75e96c69 df437eeb
......@@ -128,6 +128,10 @@ assert('mruby -r option (file not found)') do
assert_mruby("", /\A.*: Cannot open library file: .*\n\z/, false, %w[-r _no_exists_])
end
assert('mruby --verbose option') do
assert_mruby(/\A[^\n]*NODE.*\n:end\n\z/m, "", true, %w[--verbose -e p(:end)])
end
assert('mruby --') do
assert_mruby(%{["-x", "1"]\n}, "", true, %w[-e p(ARGV) -- -x 1])
end
......
......@@ -189,7 +189,6 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
}
else if (strcmp(opt, "verbose") == 0) {
args->verbose = TRUE;
break;
}
else if (strcmp(opt, "copyright") == 0) {
mrb_show_copyright(mrb);
......
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