fix duration flag help

This commit is contained in:
Miki Tebeka 2023-12-05 17:33:53 +02:00
parent f0ff6c502a
commit ee4c00c3b1
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func ExampleFlagSet() {
stop := func(args []string) {
fs := flag.NewFlagSet("stop", flag.ContinueOnError)
timeout := fs.Duration("timeout", time.Second, "stop timeout in `seconds`")
timeout := fs.Duration("timeout", time.Second, "stop timeout duration (e.g. `3s`)")
if err := fs.Parse(args); err != nil {
fmt.Printf("error: %s", err)
return