aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/stdlib.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-17 16:31:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-17 16:31:37 -0400
commit4636eeb4bf93b260e5c5cbecfb18c8c9b2a6976d (patch)
tree64520e477f3b5d80354553a006a10565ff1546d0 /src/stdlib/stdlib.h
parent13e7d04a74f7ad0b9b9dc96f681d091b65dce5ec (diff)
Add --version flag for executables and more documentation.
Diffstat (limited to 'src/stdlib/stdlib.h')
-rw-r--r--src/stdlib/stdlib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stdlib/stdlib.h b/src/stdlib/stdlib.h
index 04c504fe..2dd3c5b7 100644
--- a/src/stdlib/stdlib.h
+++ b/src/stdlib/stdlib.h
@@ -25,9 +25,9 @@ typedef struct {
} cli_arg_t;
void tomo_init(void);
-void _tomo_parse_args(int argc, char *argv[], Text_t usage, Text_t help, int spec_len, cli_arg_t spec[spec_len]);
-#define tomo_parse_args(argc, argv, usage, help, ...) \
- _tomo_parse_args(argc, argv, usage, help, sizeof((cli_arg_t[]){__VA_ARGS__})/sizeof(cli_arg_t), (cli_arg_t[]){__VA_ARGS__})
+void _tomo_parse_args(int argc, char *argv[], Text_t usage, Text_t help, const char *version, int spec_len, cli_arg_t spec[spec_len]);
+#define tomo_parse_args(argc, argv, usage, help, version, ...) \
+ _tomo_parse_args(argc, argv, usage, help, version, sizeof((cli_arg_t[]){__VA_ARGS__})/sizeof(cli_arg_t), (cli_arg_t[]){__VA_ARGS__})
#define fail(...) ({ \
fflush(stdout); \