From: AsamK Date: Wed, 2 Mar 2022 21:45:26 +0000 (+0100) Subject: Mark --target-timestamp flag as required for sendReceipt command X-Git-Tag: v0.10.4.1~1 X-Git-Url: https://git.nmode.ca/signal-cli/commitdiff_plain/bf2a83755e33542a411d58701c5eb0eff3f1ebaf?ds=sidebyside Mark --target-timestamp flag as required for sendReceipt command Fixes #901 --- diff --git a/src/main/java/org/asamk/signal/commands/SendReceiptCommand.java b/src/main/java/org/asamk/signal/commands/SendReceiptCommand.java index 6ba8a40c..1eec6c99 100644 --- a/src/main/java/org/asamk/signal/commands/SendReceiptCommand.java +++ b/src/main/java/org/asamk/signal/commands/SendReceiptCommand.java @@ -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).")