diff options
Diffstat (limited to 'stdlib/stdlib.c')
| -rw-r--r-- | stdlib/stdlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index cc549899..64f3555f 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -164,6 +164,10 @@ static bool parse_single_arg(const TypeInfo_t *info, char *arg, void *dest) Text_t t = generic_as_text(NULL, false, info); errx(1, "Unsupported multi-argument struct type for argument parsing: %k", &t); + } else if (info->tag == ArrayInfo) { + errx(1, "Array arguments must be specified as `--flag ...` not `--flag=...`"); + } else if (info->tag == TableInfo) { + errx(1, "Table arguments must be specified as `--flag ...` not `--flag=...`"); } else { Text_t t = generic_as_text(NULL, false, info); errx(1, "Unsupported type for argument parsing: %k", &t); |
