fix: return correct no. of vars. (remaining_val missing). Fixes arg issues with custom arguments.

This commit is contained in:
ikkemaniac 2025-01-05 18:48:01 +01:00
parent b19a2ea487
commit ae77f37639

View file

@ -392,7 +392,7 @@ class CustomArgument(Argument):
def match(self, val: str, **kwargs) -> Tuple[str, Any]: def match(self, val: str, **kwargs) -> Tuple[str, Any]:
if self.pass_raw: if self.pass_raw:
return self.matcher(val) return "", self.matcher(val)
orig_val = val orig_val = val
val = re.split(r"\s", val, 1)[0] val = re.split(r"\s", val, 1)[0]
res = self.matcher(val) res = self.matcher(val)