fix: intervals -> interval
This commit is contained in:
parent
40f3f2163c
commit
fd64888d1b
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ 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"`
|
||||
Interval gli.Duration `cli:"interval,i=DURATION" default:"1s"`
|
||||
Timeout gli.Duration `cli:"timeout=DURATION" default:"0s" help:"zelo value means ininite"`
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ waitLoop:
|
|||
//nop
|
||||
}
|
||||
|
||||
time.Sleep(c.Intervals.Duration())
|
||||
time.Sleep(c.Interval.Duration())
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue