This commit is contained in:
Denis Laxalde 2023-10-02 07:47:37 -07:00 committed by GitHub
commit b718cb2c9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]