Added json output to listGroups and allowed json to be activated with -j

This commit is contained in:
david-harley 2021-01-07 15:02:47 +10:30
parent 88d81c7a63
commit 38a2da4855
4 changed files with 142 additions and 30 deletions

View file

@ -130,7 +130,7 @@ Uses a list of phone numbers to determine the statuses of those users. Shows if
[NUMBER [NUMBER ...]]::
One or more numbers to check.
*--json*::
*--j*, *--json*::
Output the statuses as an array of json objects.
=== send
@ -184,7 +184,7 @@ Number of seconds to wait for new messages (negative values disable timeout).
Default is 5 seconds.
*--ignore-attachments*::
Dont download attachments of received messages.
*--json*::
*--j*, *--json*::
Output received messages in json format, one object per line.
=== joinGroup
@ -222,10 +222,13 @@ Specify the recipient group ID in base64 encoding.
=== listGroups
Show a list of known groups.
Show a list of known groups and related information.
*-d*, *--detailed*::
Include the list of members of each group.
Include the list of members of each group and the group invite link.
*--j*, *--json*::
Output group information as a list of json objects.
=== listIdentities