X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/14c8f07b8d173eb162511075da1b4b1108773768..d4b4bd86038025ec69e95c9994e30077d1c9d241:/src/main/java/org/asamk/signal/Cli.java diff --git a/src/main/java/org/asamk/signal/Cli.java b/src/main/java/org/asamk/signal/Cli.java index 9f7048ad..8d46a0a9 100644 --- a/src/main/java/org/asamk/signal/Cli.java +++ b/src/main/java/org/asamk/signal/Cli.java @@ -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");