diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-15 18:16:48 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-15 18:16:48 -0500 |
| commit | 76b434a6be6c05d7d3dae5b77ec8fd886fd715d0 (patch) | |
| tree | d964406d2a41767df6d0d49f9926691d207a0734 | |
| parent | 290c72732f21f1cddb3a0f8ec3213e4ec321da14 (diff) | |
Bugfix for CLI arg parsing
| -rw-r--r-- | src/stdlib/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/cli.c b/src/stdlib/cli.c index 22ed9b94..3c474160 100644 --- a/src/stdlib/cli.c +++ b/src/stdlib/cli.c @@ -397,7 +397,7 @@ bool pop_cli_flag(List_t *args, char short_flag, const char *flag, void *dest, c List_t texts = Text$split(Text$from_str(arg_value), Text(",")); values = EMPTY_LIST; for (int64_t j = 0; j < (int64_t)texts.length; j++) - List$insert_value(&texts, Text$as_c_string(*(Text_t *)(texts.data + j * texts.stride)), I(0), + List$insert_value(&values, Text$as_c_string(*(Text_t *)(texts.data + j * texts.stride)), I(0), sizeof(const char *)); } else { // Case: -fVALUE |
