From a0ae6ae5eb9e9324d6e2167779cae9f4f8c9df82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gallenm=C3=BCller?= Date: Thu, 13 Dec 2018 21:25:43 +0100 Subject: [PATCH] fix argparsing of sniffer --- examples/moonsniff/sniffer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/moonsniff/sniffer.lua b/examples/moonsniff/sniffer.lua index 34e706511..2b0f8b031 100644 --- a/examples/moonsniff/sniffer.lua +++ b/examples/moonsniff/sniffer.lua @@ -28,7 +28,7 @@ function configure(parser) parser:flag("-l --live", "Do some live processing during packet capture. Lower performance than standard mode.") parser:flag("-f --fast", "Set fast flag to reduce the amount of live processing for higher performance. Only has effect if live flag is also set") parser:flag("-c --capture", "If set, all incoming packets are captured as a whole.") - parser:option("-s --snaplen", "Maximum capture length of recorded packets."):args(nil):default("snaplen") + parser:option("-s --snaplen", "Maximum capture length of recorded packets."):default(nil) parser:flag("-d --debug", "Insted of reading real input, some fake input is generated and written to the output files.") return parser:parse() end