Fix arity of arguments in verify commands

Fixes https://github.com/pgpainless/pgpainless/issues/330
This commit is contained in:
Paul Schaub 2022-11-05 18:06:35 +01:00
parent 04d38b988a
commit 043e95e5c0
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ import java.util.List;
exitCodeOnInvalidInput = 37) exitCodeOnInvalidInput = 37)
public class InlineVerifyCmd extends AbstractSopCmd { public class InlineVerifyCmd extends AbstractSopCmd {
@CommandLine.Parameters(arity = "1..*", @CommandLine.Parameters(arity = "0..*",
paramLabel = "CERT") paramLabel = "CERT")
List<String> certificates = new ArrayList<>(); List<String> certificates = new ArrayList<>();

View file

@ -25,7 +25,7 @@ public class VerifyCmd extends AbstractSopCmd {
paramLabel = "SIGNATURE") paramLabel = "SIGNATURE")
String signature; String signature;
@CommandLine.Parameters(index = "0..*", @CommandLine.Parameters(index = "1..*",
arity = "1..*", arity = "1..*",
paramLabel = "CERT") paramLabel = "CERT")
List<String> certificates = new ArrayList<>(); List<String> certificates = new ArrayList<>();