From 9b31d473790bf87568f1361f72ae317961cde04d Mon Sep 17 00:00:00 2001 From: chhylp123 Date: Wed, 28 Apr 2021 23:10:51 -0400 Subject: [PATCH] exit(0) for --help --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index ccc4ed1..0518279 100644 --- a/main.cpp +++ b/main.cpp @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) int i, ret; yak_reset_realtime(); init_opt(&asm_opt); - if (!CommandLine_process(argc, argv, &asm_opt)) return 1; + if (!CommandLine_process(argc, argv, &asm_opt)) return 0; ret = ha_assemble(); destory_opt(&asm_opt); fprintf(stderr, "[M::%s] Version: %s\n", __func__, HA_VERSION);