@cryptotaxi247 / kubo / commits / 598ea5ed5

Added note about time formatting

This closes #2312 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed Feb 8, 2016 at 09:46 UTC 598ea5ed502b673831a44d944cfcb455399788c1
1 file changed +5 -1
core/commands/publish.go
+5 -1
@@ -51,7 +51,11 @@ Publish an <ipfs-path> to another public key (not implemented):
51 },
52 Options: []cmds.Option{
53 cmds.BoolOption("resolve", "Resolve given path before publishing (default=true)."),
54 - cmds.StringOption("lifetime", "t", "Time duration that the record will be valid for (default: 24hrs)."),
54 + cmds.StringOption("lifetime", "t", `Time duration that the record will be valid for. Default: 24h.
55 +
56 + This accepts durations such as "300s", "1.5h" or "2h45m". Valid time units are
57 + "ns", "us" (or "µs"), "ms", "s", "m", "h".
58 + `),
59 cmds.StringOption("ttl", "Time duration this record should be cached for (caution: experimental)."),
60 },
61 Run: func(req cmds.Request, res cmds.Response) {