Merge 8220bcedf6
into 75879cfb93
This commit is contained in:
commit
b718cb2c9b
1 changed files with 2 additions and 0 deletions
|
@ -403,6 +403,8 @@ class CustomArgument(Argument):
|
||||||
|
|
||||||
class SimpleArgument(Argument):
|
class SimpleArgument(Argument):
|
||||||
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
def match(self, val: str, **kwargs) -> Tuple[str, Any]:
|
||||||
|
if not val:
|
||||||
|
return "", None
|
||||||
if self.pass_raw:
|
if self.pass_raw:
|
||||||
return "", val
|
return "", val
|
||||||
res = re.split(r"\s", val, 1)[0]
|
res = re.split(r"\s", val, 1)[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue