make nake test compile again

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

View file

@ -75,7 +75,7 @@ else:
of cmdArgument: of cmdArgument:
task = key task = key
else: discard 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:" echo "Available tasks:"
for name, task in pairs(tasks): for name, task in pairs(tasks):
echo name, " - ", task.desc echo name, " - ", task.desc