]> nmode's Git Repositories - signal-cli/commitdiff
Add command line argument for JSON output in daemon
authorRiamse <andrewwang43@gmail.com>
Sun, 6 May 2018 18:21:09 +0000 (14:21 -0400)
committerAsamK <asamk@gmx.de>
Thu, 17 May 2018 16:07:31 +0000 (18:07 +0200)
src/main/java/org/asamk/signal/Main.java

index 2c955753ac2a534b7f13a34c148cbe652fb3fd8d..3b2fbadbb1fb6efc447bb2e3f946eee5815e2a0a 100644 (file)
@@ -899,6 +899,9 @@ public class Main {
         parserDaemon.addArgument("--ignore-attachments")
                 .help("Don’t 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);