From fd64888d1b1b802b840d93ccaaea8c5eada0daf0 Mon Sep 17 00:00:00 2001 From: ShuheiKubota Date: Mon, 18 Nov 2019 17:33:27 +0900 Subject: [PATCH] fix: intervals -> interval --- cmd_wait.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd_wait.go b/cmd_wait.go index 6acc21d..4dbf33b 100644 --- a/cmd_wait.go +++ b/cmd_wait.go @@ -16,9 +16,9 @@ import ( type waitCmd struct { _ struct{} `help:"[--close] {Title}"` - Closed bool `help:"wait until the window is closed"` - Intervals gli.Duration `cli:"intervals,i=DURATION" default:"1s"` - Timeout gli.Duration `cli:"timeout=DURATION" default:"0s" help:"zelo value means ininite"` + Closed bool `help:"wait until the window is closed"` + Interval gli.Duration `cli:"interval,i=DURATION" default:"1s"` + Timeout gli.Duration `cli:"timeout=DURATION" default:"0s" help:"zelo value means ininite"` } func (c waitCmd) Run(args []string) error { @@ -70,7 +70,7 @@ waitLoop: //nop } - time.Sleep(c.Intervals.Duration()) + time.Sleep(c.Interval.Duration()) } return nil