Fix long option

This commit is contained in:
linarphy 2024-05-31 15:33:10 +02:00
parent a5d8eef728
commit fc28980085
No known key found for this signature in database
GPG key ID: E61920135EFF2295

View file

@ -46,7 +46,7 @@ def parse(line: str, flags: list[Flag], values: list[Value]):
index += 1
for value in values:
if value.long() == element[: len(value.long())]:
value.apply(element[len(value.long())])
value.apply(element[len(value.long()):])
index += 1
except IndexError:
logger.warning(_("empty value"))