summaryrefslogtreecommitdiffstats
path: root/sqv/src/sqv_cli.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-16 14:38:53 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-16 14:50:51 +0100
commit4b7457928f2d57bdb881a70c762db7d4359d541f (patch)
tree930b88392029f7a719e751d44016fc0678e9529d /sqv/src/sqv_cli.rs
parent94babb06f0210666fcb70415f37de5566d3a7834 (diff)
sqv: Support more variants of ISO 6801 timestamps.
- Fixes #403.
Diffstat (limited to 'sqv/src/sqv_cli.rs')
-rw-r--r--sqv/src/sqv_cli.rs19
1 files changed, 13 insertions, 6 deletions
diff --git a/sqv/src/sqv_cli.rs b/sqv/src/sqv_cli.rs
index f0826948..7efde976 100644
--- a/sqv/src/sqv_cli.rs
+++ b/sqv/src/sqv_cli.rs
@@ -24,14 +24,16 @@ pub fn build() -> App<'static, 'static> {
.long("signatures")
.short("n")
.takes_value(true))
- .arg(Arg::with_name("not-before").value_name("YYYY-MM-DD")
- .help("Consider signatures created before YYYY-MM-DD as invalid. \
- Default: no constraint")
+ .arg(Arg::with_name("not-before").value_name("TIMESTAMP")
+ .help("Consider signatures created before TIMESTAMP as invalid. \
+ If a date is given, 00:00:00 is used for the time. \
+ \n[default: no constraint]")
.long("not-before")
.takes_value(true))
- .arg(Arg::with_name("not-after").value_name("YYYY-MM-DD")
- .help("Consider signatures created after YYYY-MM-DD as invalid. \
- Default: now")
+ .arg(Arg::with_name("not-after").value_name("TIMESTAMP")
+ .help("Consider signatures created after TIMESTAMP as invalid. \
+ If a date is given, 23:59:59 is used for the time. \
+ \n[default: now]")
.long("not-after")
.takes_value(true))
.arg(Arg::with_name("sig-file").value_name("SIG-FILE")
@@ -43,4 +45,9 @@ pub fn build() -> App<'static, 'static> {
.arg(Arg::with_name("trace")
.help("Trace execution.")
.long("trace"))
+ .after_help(
+ "TIMESTAMPs must be given in ISO 9801 format \
+ (e.g. '2017-03-04T13:25:35Z', '2017-03-04T13:25', \
+ '20170304T1325+0830', '2017-03-04', '2017031', ...). \
+ If no timezone is specified, UTC is assumed.")
}