Skip to content

Commit

Permalink
cmd: Fix available time duration unit at token flush CLI description (#…
Browse files Browse the repository at this point in the history
…1251)

"1d" is unavailable unit, see: https://godoc.org/time#ParseDuration

Signed-off-by: Shota SAWADA <xiootas@gmail.com>
  • Loading branch information
Sawada Shota authored and aeneasr committed Jan 2, 2019
1 parent e2d6c44 commit 149573a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/token_flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var tokenFlushCmd = &cobra.Command{
func init() {
tokenCmd.AddCommand(tokenFlushCmd)

tokenFlushCmd.Flags().Duration("min-age", time.Duration(0), "Skip removing tokens which do not satisfy the minimum age (1s, 1m, 1h, 1d)")
tokenFlushCmd.Flags().Duration("min-age", time.Duration(0), "Skip removing tokens which do not satisfy the minimum age (1s, 1m, 1h)")
tokenFlushCmd.Flags().String("access-token", os.Getenv("OAUTH2_ACCESS_TOKEN"), "Set an access token to be used in the Authorization header, defaults to environment variable OAUTH2_ACCESS_TOKEN")
tokenFlushCmd.Flags().String("endpoint", os.Getenv("HYDRA_ADMIN_URL"), "Set the URL where ORY Hydra is hosted, defaults to environment variable HYDRA_ADMIN_URL")
}

0 comments on commit 149573a

Please sign in to comment.