iwasm: Print help when meeting unknown cmd options (#2824)

This commit is contained in:
liang.he
2023-11-27 11:16:54 +08:00
committed by GitHub
parent 5f7079f0f5
commit 5377e18623

View File

@ -156,6 +156,9 @@ libc_wasi_parse(char *arg, libc_wasi_parse_context_t *ctx)
}
ctx->ns_lookup_pool[ctx->ns_lookup_pool_size++] = arg + 16;
}
else {
return LIBC_WASI_PARSE_RESULT_NEED_HELP;
}
return LIBC_WASI_PARSE_RESULT_OK;
}