add: help msg

This commit is contained in:
ShuheiKubota 2019-11-10 12:09:09 +09:00
parent a71fc16263
commit 5fa8324192

14
vvin.go
View file

@ -27,13 +27,13 @@ func init() {
type globalCmd struct { type globalCmd struct {
Target string `cli:"target,t=WINDOW_TITLE" help:"default to current window"` Target string `cli:"target,t=WINDOW_TITLE" help:"default to current window"`
Debug bool Debug bool `help:"output debug info"`
Minimize minCmd `cli:"minimize,min"` Minimize minCmd `cli:"minimize,min" help:"minimize/restore"`
Maximize maxCmd `cli:"maximize,max"` Maximize maxCmd `cli:"maximize,max" help:"maximize/restore"`
Resize resizeCmd `cli:"resize,move,mv"` Resize resizeCmd `cli:"resize,move,mv" help:"resize/move"`
Alpha alphaCmd `cli:"alpha"` Alpha alphaCmd `cli:"alpha" help:"set alpha 0%(transparent) - 100%(opaque)"`
Topmost topmostCmd `cli:"topmost"` Topmost topmostCmd `cli:"topmost" help:"set always on top/restore"`
targetHandle syscall.Handle targetHandle syscall.Handle
@ -219,7 +219,7 @@ func (c topmostCmd) Run(g globalCmd) {
func main() { func main() {
app := gli.NewWith(&globalCmd{}) app := gli.NewWith(&globalCmd{})
app.Name = "vvin" app.Name = "vvin"
app.Desc = "" app.Desc = "Change window properties for Windows"
app.Version = Version app.Version = Version
app.Usage = `` app.Usage = ``
app.Copyright = "(C) 2019 Shuhei Kubota" app.Copyright = "(C) 2019 Shuhei Kubota"