Skip to content

Commit 86fe23a

Browse files
authored
Merge pull request #1411 from smallstep/carl/ca-token-help-fix
Fix step ca token help text around validity period flags
2 parents 1bf3d3b + a0c882c commit 86fe23a

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

command/ca/token.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,22 @@ multiple principals.`,
207207
sshHostFlag,
208208
flags.CaConfig,
209209
flags.Force,
210-
flags.NotAfter,
211-
flags.NotBefore,
210+
cli.StringFlag{
211+
Name: "not-before",
212+
Usage: `The <time|duration> when the token's validity period starts. If a <time> is
213+
used it is expected to be in RFC 3339 format. If a <duration> is used, it is a
214+
sequence of decimal numbers, each with optional fraction and a unit suffix, such
215+
as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms",
216+
"s", "m", "h".`,
217+
},
218+
cli.StringFlag{
219+
Name: "not-after",
220+
Usage: `The <time|duration> when the token's validity period ends. If a <time> is
221+
used it is expected to be in RFC 3339 format. If a <duration> is used, it is a
222+
sequence of decimal numbers, each with optional fraction and a unit suffix, such
223+
as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms",
224+
"s", "m", "h".`,
225+
},
212226
flags.CertNotAfter,
213227
flags.CertNotBefore,
214228
flags.Provisioner,

0 commit comments

Comments
 (0)