From 79d08c809a758194655b700d9f12dbe62dd129fb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 6 Sep 2024 12:18:28 -0400 Subject: Ensure HELP and USAGE are initialized when running CLI program --- tomo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tomo.c b/tomo.c index 3c796acf..728fb745 100644 --- a/tomo.c +++ b/tomo.c @@ -441,7 +441,8 @@ int transpile_code(env_t *base_env, const char *filename, bool force_retranspile if (main_binding && main_binding->type->tag == FunctionType) { CORD_put(CORD_all( "int ", main_binding->code, "$parse_and_run(int argc, char *argv[]) {\n" - "tomo_init();\n" + "tomo_init();\n", + module_env->namespace->name, "$$initialize();\n" "\n", compile_cli_arg_call(module_env, main_binding->code, main_binding->type), "return 0;\n" -- cgit v1.2.3