Mark --target-timestamp flag as required for sendReceipt command

Fixes #901
This commit is contained in:
AsamK 2022-03-02 22:45:26 +01:00
parent 6f8784a1c9
commit bf2a83755e

View 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).")