make nake test compile again

This commit is contained in:
Araq
2018-08-22 17:34:16 +02:00
parent eeafb1a720
commit 78e2b515a2

View File

@@ -75,7 +75,7 @@ else:
of cmdArgument:
task = key
else: discard
if printTaskList or task.isNil or not(tasks.hasKey(task)):
if printTaskList or task.len == 0 or not(tasks.hasKey(task)):
echo "Available tasks:"
for name, task in pairs(tasks):
echo name, " - ", task.desc