From: Steve Freegard Date: Fri, 28 Sep 2018 19:58:46 +0000 (+0100) Subject: Fix args in corpus_test X-Git-Tag: 1.8.1~133^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2549%2Fhead;p=rspamd.git Fix args in corpus_test --- diff --git a/lualib/rspamadm/corpus_test.lua b/lualib/rspamadm/corpus_test.lua index 07051a196..eb144107a 100644 --- a/lualib/rspamadm/corpus_test.lua +++ b/lualib/rspamadm/corpus_test.lua @@ -130,9 +130,9 @@ end local function handler(args) opts = parser:parse(args) - local ham_directory = opts['ham_directory'] - local spam_directory = opts['spam_directory'] - local connections = opts["connections"] + local ham_directory = opts['ham'] + local spam_directory = opts['spam'] + local connections = opts["conns"] local output = opts["output"] local results = {} @@ -182,4 +182,4 @@ return { name = 'corpus_test', handler = handler, description = parser._description -} \ No newline at end of file +}