From 598ea5ed502b673831a44d944cfcb455399788c1 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Mon, 8 Feb 2016 09:46:47 -0500 Subject: [PATCH] Added note about time formatting This closes #2312 License: MIT Signed-off-by: Richard Littauer --- core/commands/publish.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/commands/publish.go b/core/commands/publish.go index 904cfb7c3..09a7131a7 100644 --- a/core/commands/publish.go +++ b/core/commands/publish.go @@ -51,7 +51,11 @@ Publish an to another public key (not implemented): }, Options: []cmds.Option{ cmds.BoolOption("resolve", "Resolve given path before publishing (default=true)."), - cmds.StringOption("lifetime", "t", "Time duration that the record will be valid for (default: 24hrs)."), + cmds.StringOption("lifetime", "t", `Time duration that the record will be valid for. Default: 24h. + + This accepts durations such as "300s", "1.5h" or "2h45m". Valid time units are + "ns", "us" (or "µs"), "ms", "s", "m", "h". + `), cmds.StringOption("ttl", "Time duration this record should be cached for (caution: experimental)."), }, Run: func(req cmds.Request, res cmds.Response) {