mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add command line argument for JSON output in daemon
This commit is contained in:
parent
3bcc2fa621
commit
a44034a79e
1 changed files with 3 additions and 0 deletions
|
@ -899,6 +899,9 @@ public class Main {
|
||||||
parserDaemon.addArgument("--ignore-attachments")
|
parserDaemon.addArgument("--ignore-attachments")
|
||||||
.help("Don’t download attachments of received messages.")
|
.help("Don’t download attachments of received messages.")
|
||||||
.action(Arguments.storeTrue());
|
.action(Arguments.storeTrue());
|
||||||
|
parserDaemon.addArgument("--json")
|
||||||
|
.help("Output received messages in json format, one json object per line.")
|
||||||
|
.action(Arguments.storeTrue());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Namespace ns = parser.parseArgs(args);
|
Namespace ns = parser.parseArgs(args);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue