aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-07 00:26:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-07 00:26:30 -0400
commit3f16e95127de7a5eb58801406435f4fd8f5712f6 (patch)
tree9ef1ae104269ba1040c05eebc279f92f97fae492 /compile.c
parentc454bfa3c4c11b30aa03cde266e76466d2971c20 (diff)
USAGE and HELP need an underscore prefix so they're not imported into
other files. Also fixed up dependency tool so it works good now
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 1ebcfb02..74ba3228 100644
--- a/compile.c
+++ b/compile.c
@@ -3113,9 +3113,9 @@ CORD compile_cli_arg_call(env_t *env, CORD fn_name, type_t *fn_type)
{
auto fn_info = Match(fn_type, FunctionType);
- binding_t *usage_binding = get_binding(env, "USAGE");
+ binding_t *usage_binding = get_binding(env, "_USAGE");
CORD usage_code = usage_binding ? usage_binding->code : "usage";
- binding_t *help_binding = get_binding(env, "HELP");
+ binding_t *help_binding = get_binding(env, "_HELP");
CORD help_code = help_binding ? help_binding->code : usage_code;
if (!fn_info->args) {