Skip to content

Commit

Permalink
Add command line argument for JSON output in daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwang43 authored and AsamK committed May 17, 2018
1 parent 3bcc2fa commit a44034a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/asamk/signal/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,9 @@ private static Namespace parseArgs(String[] args) {
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);
Expand Down

0 comments on commit a44034a

Please sign in to comment.