mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Added JSON output to listGroups and allowed json to be activated with -j (#401)
* Added json output to listGroups and allowed json to be activated with -j * Renamed classes * Added AsamK's suggestions * Removed isRegisted check since that is causing a conflict with upstream * Fixed an issue in the help message for listGroupsCommand * Re-enabled --json for receive and getUserStatuses commands as deprecated * Added better depricated warning message and clarified some java doc stuff
This commit is contained in:
parent
c9fa28d844
commit
90f5cd79c9
6 changed files with 134 additions and 41 deletions
|
@ -299,6 +299,9 @@ public class Main {
|
|||
mut.addArgument("--dbus").help("Make request via user dbus.").action(Arguments.storeTrue());
|
||||
mut.addArgument("--dbus-system").help("Make request via system dbus.").action(Arguments.storeTrue());
|
||||
|
||||
parser.addArgument("-o", "--output").help("Choose to output in plain text or JSON")
|
||||
.choices("plain-text", "json").setDefault("plain-text");
|
||||
|
||||
Subparsers subparsers = parser.addSubparsers()
|
||||
.title("subcommands")
|
||||
.dest("command")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue