From 11b1acf7f66cf07559ccb24d79b5af05a89aaff6 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 22 Dec 2020 23:09:41 +0100 Subject: [PATCH] Improve verify command descriptions --- .../org/pgpainless/sop/commands/Verify.java | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Verify.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Verify.java index f8ec16aa..cb66c7a6 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Verify.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/commands/Verify.java @@ -56,23 +56,30 @@ public class Verify implements Runnable { df.setTimeZone(tz); } - @CommandLine.Parameters(index = "0", description = "Detached signature") + @CommandLine.Parameters(index = "0", + description = "Detached signature", + paramLabel = "SIGNATURE") File signature; - @CommandLine.Parameters(index = "1..*", arity = "1..*", description = "Public key certificates") + @CommandLine.Parameters(index = "1..*", + arity = "1..*", + description = "Public key certificates", + paramLabel = "CERT") File[] certificates; - @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" + - "Defaults to beginning of time (\"-\").", - arity = "0..1") + @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" + + "Defaults to beginning of time (\"-\").", + paramLabel = "DATE") String notBefore = "-"; - @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" + - "Defaults to current system time (\"now\").\n" + - "Accepts special value \"-\" for end of time.", - arity = "0..1") + @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" + + "Defaults to current system time (\"now\").\n" + + "Accepts special value \"-\" for end of time.", + paramLabel = "DATE") String notAfter = "now"; @Override