diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-21 22:19:16 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-21 22:19:16 -0500 |
| commit | 3c80527f5d788ef80abe5cd3a28aabe168a6d69c (patch) | |
| tree | c998e93e67e873c3a6d3e502bcc1ecccbca516c5 /src/stdlib | |
| parent | d6de03feb280d179efa07e1727f42955b25d733c (diff) | |
Bugfix for optional path CLI args
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdlib/cli.c b/src/stdlib/cli.c index 3c474160..3523296a 100644 --- a/src/stdlib/cli.c +++ b/src/stdlib/cli.c @@ -220,6 +220,7 @@ static List_t parse_arg_list(List_t args, const char *flag, void *dest, const Ty else if (nonnull == &Int16$info) ((OptionalInt16_t *)dest)->has_value = true; else if (nonnull == &Int8$info) ((OptionalInt8_t *)dest)->has_value = true; else if (nonnull == &Byte$info) ((OptionalByte_t *)dest)->has_value = true; + else if (nonnull == &Path$info) return args; else if (nonnull->tag == StructInfo && nonnull != &Path$info) *(bool *)(dest + nonnull->size) = true; else print_err("Unsupported type: ", generic_as_text(NULL, true, nonnull)); return args; |
