aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-18 15:38:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-18 15:38:02 -0400
commit7e5a1fa68dbdc2aa034d9e22648837ef63e57d5e (patch)
tree2b0a210de66f181d395b0330c30fbaa20bfc7e65 /src/tomo.c
parentf879157284ab9a13fb37cfdc18e7919248fb37fe (diff)
Fix '--' arg parsing
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 5d8c7372..4552f401 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -220,6 +220,7 @@ int main(int argc, char *argv[]) {
Text_t help = Texts(Text("\x1b[1mtomo\x1b[m: a compiler for the Tomo programming language"), Text("\n\n"), usage);
tomo_parse_args(argc, argv, usage, help, TOMO_VERSION, //
{"run", 'r', false, List$info(&Path$info), &run_files}, //
+ {"args", '\0', false, List$info(&Text$info), &args}, //
{"format", 'F', false, List$info(&Path$info), &format_files}, //
{"format-inplace", '\0', false, List$info(&Path$info), &format_files_inplace}, //
{"transpile", 't', false, List$info(&Path$info), &transpile_files}, //
@@ -237,7 +238,6 @@ int main(int argc, char *argv[]) {
{"force-rebuild", 'f', false, &Bool$info, &clean_build}, //
{"source-mapping", 'm', false, &Bool$info, &source_mapping},
{"changelog", '\0', false, &Bool$info, &show_changelog}, //
- {"args", '\0', false, List$info(&Text$info), &args}, //
);
if (show_prefix) {