Add command line argument for JSON output in daemon

This commit is contained in:
Riamse 2018-05-06 14:21:09 -04:00
parent bdffcffd7a
commit 837ccfc5fd

View file

@ -899,6 +899,9 @@ public class Main {
parserDaemon.addArgument("--ignore-attachments")
.help("Dont download attachments of received messages.")
.action(Arguments.storeTrue());
parserDaemon.addArgument("--json")
.help("Output received messages in json format, one json object per line.")
.action(Arguments.storeTrue());
try {
Namespace ns = parser.parseArgs(args);