aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/command_spec.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-26 02:00:43 +0000
committerGravatar jesopo2020-01-26 02:00:43 +0000
commitc3bb46ad23ab40510572ff3cdf12929e19b52de9 (patch)
tree46d97f65547e34c8b164449c39e492f0b3c04d82 /src/core_modules/command_spec.py
parentshow topic timestamp in a more human readable format (diff)
signature
only show "not enough arguments" n>len(args)
Diffstat (limited to 'src/core_modules/command_spec.py')
-rw-r--r--src/core_modules/command_spec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_modules/command_spec.py b/src/core_modules/command_spec.py
index 340f6fee..da3691c6 100644
--- a/src/core_modules/command_spec.py
+++ b/src/core_modules/command_spec.py
@@ -117,7 +117,7 @@ class Module(ModuleManager.BaseModule):
value = [argument_type.type, value]
found = value
break
- elif not error and n > 0:
+ elif not error and n > len(args):
error = "Not enough arguments"
if error and not first_error: