]> nmode's Git Repositories - signal-cli/commitdiff
Mark --target-timestamp flag as required for sendReceipt command
authorAsamK <asamk@gmx.de>
Wed, 2 Mar 2022 21:45:26 +0000 (22:45 +0100)
committerAsamK <asamk@gmx.de>
Wed, 2 Mar 2022 21:45:26 +0000 (22:45 +0100)
Fixes #901

src/main/java/org/asamk/signal/commands/SendReceiptCommand.java

index 6ba8a40cf451cb2b0b4034ddc0e205e8ee33e1ea..1eec6c9947b8ac49ba4ac920161b11ab74910cb1 100644 (file)
@@ -28,6 +28,7 @@ public class SendReceiptCommand implements JsonRpcLocalCommand {
         subparser.addArgument("-t", "--target-timestamp")
                 .type(long.class)
                 .nargs("+")
+                .required(true)
                 .help("Specify the timestamp of the messages for which a receipt should be sent.");
         subparser.addArgument("--type")
                 .help("Specify the receipt type (default is read receipt).")