1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-01-09 19:57:57 +01:00

Verify: set arity of boundary options to 0..1

This commit is contained in:
Paul Schaub 2020-12-22 22:09:22 +01:00
parent b733b94b9e
commit 5c11b25212
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -63,13 +63,15 @@ public class Verify implements Runnable {
@CommandLine.Option(names = {"--not-before"}, description = "ISO-8601 formatted UTC date (eg. '2020-11-23T16:35Z)\n" + @CommandLine.Option(names = {"--not-before"}, description = "ISO-8601 formatted UTC date (eg. '2020-11-23T16:35Z)\n" +
"Reject signatures with a creation date not in range.\n" + "Reject signatures with a creation date not in range.\n" +
"Defaults to beginning of time (\"-\").") "Defaults to beginning of time (\"-\").",
arity = "0..1")
String notBefore = "-"; String notBefore = "-";
@CommandLine.Option(names = {"--not-after"}, description = "ISO-8601 formatted UTC date (eg. '2020-11-23T16:35Z)\n" + @CommandLine.Option(names = {"--not-after"}, description = "ISO-8601 formatted UTC date (eg. '2020-11-23T16:35Z)\n" +
"Reject signatures with a creation date not in range.\n" + "Reject signatures with a creation date not in range.\n" +
"Defaults to current system time (\"now\").\n" + "Defaults to current system time (\"now\").\n" +
"Accepts special value \"-\" for end of time.") "Accepts special value \"-\" for end of time.",
arity = "0..1")
String notAfter = "now"; String notAfter = "now";
@Override @Override