mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add an enum for output types
This commit is contained in:
parent
14c8f07b8d
commit
d4b4bd8603
6 changed files with 28 additions and 8 deletions
|
@ -65,8 +65,8 @@ public class Cli {
|
|||
|
||||
parser.addArgument("-o", "--output")
|
||||
.help("Choose to output in plain text or JSON")
|
||||
.choices("plain-text", "json")
|
||||
.setDefault("plain-text");
|
||||
.type(Arguments.enumStringType(OutputType.class))
|
||||
.setDefault(OutputType.PLAIN_TEXT);
|
||||
|
||||
Subparsers subparsers = parser.addSubparsers().title("subcommands").dest("command");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue