diff --git a/cmd_wait.go b/cmd_wait.go index 53f8bf8..35b24ea 100644 --- a/cmd_wait.go +++ b/cmd_wait.go @@ -9,9 +9,9 @@ import ( ) type waitCmd struct { - _ struct{} `help:"[--wait] {Title}"` + _ struct{} `help:"[--close] {Title}"` - Closed bool + Closed bool `help:"wait until the window is closed"` Intervals gli.Duration `cli:"intervals,i=DURATION" default:"1s"` } diff --git a/vvin.go b/vvin.go index f74991e..b7ed358 100644 --- a/vvin.go +++ b/vvin.go @@ -33,7 +33,7 @@ type globalCmd struct { Resize resizeCmd `cli:"resize,move,mv" help:"resize/move"` Alpha alphaCmd `cli:"alpha" help:"set alpha 0%(transparent) - 100%(opaque)"` Topmost topmostCmd `cli:"topmost" help:"set always on top/restore"` - Wait waitCmd `cli:"wait"` + Wait waitCmd `cli:"wait" help:"wait for a window is opened/closed ([--close] {Title})"` targetHandle syscall.Handle