This commit is contained in:
Denis Laxalde 2025-08-29 00:23:12 +02:00 committed by GitHub
commit 178ca8338b
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]