diff --git a/cmd/gateway/commands.go b/cmd/gateway/commands.go index 1e1effb837..9e02599c65 100644 --- a/cmd/gateway/commands.go +++ b/cmd/gateway/commands.go @@ -339,7 +339,7 @@ func createSleepCommand() *cobra.Command { &duration, durationFlag, 30*time.Second, - "Set the duration of sleep", + "Set the duration of sleep. Must be parsable by https://pkg.go.dev/time#ParseDuration", ) return cmd diff --git a/docs/cli-help.md b/docs/cli-help.md index 3d910ef741..e3b795ae23 100644 --- a/docs/cli-help.md +++ b/docs/cli-help.md @@ -41,6 +41,9 @@ Usage: gateway sleep [flags] ``` -| Name | Type | Description | -|----------|------------|-------------------------------------------| -| duration | `duration` | Set the duration of sleep (default `30s`) | +| Name | Type | Description | +|----------|-----------------|-------------------------------------------------------------------------------------------------------| +| duration | `time.Duration` | Set the duration of sleep. Must be parsable by [`time.ParseDuration`][parseDuration]. (default `30s`) | + + +[parseDuration]:https://pkg.go.dev/time#ParseDuration