Mark --poll-author parameter as required

Fixes #2111
This commit is contained in:
AsamK 2026-09-10 17:34:55 +02:00
parent 76fee5dda2
commit ccd7c77a9d

View File

@ -41,7 +41,9 @@ public class SendPollVoteCommand implements JsonRpcLocalCommand {
.help("If self is part of recipients/groups send a normal message, not a sync message.")
.action(Arguments.storeTrue());
subparser.addArgument("--poll-author").help("Specify the number of the author of the poll message.");
subparser.addArgument("--poll-author")
.help("Specify the number of the author of the poll message.")
.required(true);
subparser.addArgument("--poll-timestamp")
.type(long.class)
.help("Specify the timestamp of the original poll message.")