From c3bb46ad23ab40510572ff3cdf12929e19b52de9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 26 Jan 2020 02:00:43 +0000 Subject: only show "not enough arguments" n>len(args) --- src/core_modules/command_spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core_modules/command_spec.py') 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: -- cgit v1.3.1-10-gc9f91