diff options
| -rw-r--r-- | stdlib/stdlib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index efee2a05..bf17aaf4 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -72,6 +72,9 @@ static bool parse_single_arg(const TypeInfo_t *info, char *arg, void *dest) { if (!arg) return false; + if (info->tag == OptionalInfo && streq(arg, "none")) + return true; + while (info->tag == OptionalInfo) info = info->OptionalInfo.type; |
