Skip to content

Commit

Permalink
fix argparsing of sniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gallenmu committed Dec 13, 2018
1 parent 5280b36 commit a0ae6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/moonsniff/sniffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0ae6ae

Please sign in to comment.