This commit is contained in:
Denis Laxalde 2024-09-12 13:34:59 +00:00 committed by GitHub
commit 2a3a1a6c47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -403,6 +403,8 @@ class CustomArgument(Argument):
class SimpleArgument(Argument):
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
if not val:
return "", None
if self.pass_raw:
return "", val
res = re.split(r"\s", val, 1)[0]