mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use EXIT_SUCCESS and EXIT_FAILURE for exit status; close #1142
This commit is contained in:
+2
-2
@@ -115,7 +115,7 @@ append_cmdline:
|
||||
case '-':
|
||||
if (strcmp((*argv) + 2, "version") == 0) {
|
||||
mrb_show_version(mrb);
|
||||
exit(0);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
else if (strcmp((*argv) + 2, "verbose") == 0) {
|
||||
args->verbose = 1;
|
||||
@@ -123,7 +123,7 @@ append_cmdline:
|
||||
}
|
||||
else if (strcmp((*argv) + 2, "copyright") == 0) {
|
||||
mrb_show_copyright(mrb);
|
||||
exit(0);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
else return -3;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user