aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-24 15:29:39 +0000
committerGravatar jesopo2020-01-24 15:30:32 +0000
commit47cb5eaab8cc7fa3e9a75b6ac78233855a9508ec (patch)
treec407598a717b42afe9b69d77fb5dd35c5ab9d6b7 /src/utils
parentadd ruser/rchannel (r for relevant) to command_spec.py (diff)
signature
utils.parse.timed_args() min_args should be optional
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/parse.py b/src/utils/parse.py
index c0740785..fb12b9c1 100644
--- a/src/utils/parse.py
+++ b/src/utils/parse.py
@@ -110,7 +110,7 @@ def parse_number(s: str) -> str:
raise ValueError("Unknown unit '%s' given to parse_number" % unit)
return str(number)
-def timed_args(args, min_args):
+def timed_args(args, min_args: int=0):
if args and args[0][0] == "+":
if len(args[1:]) < min_args:
raise errors.EventError("Not enough arguments")