diff --git a/dotool.go b/dotool.go index f8d0c98..08428f5 100644 --- a/dotool.go +++ b/dotool.go @@ -252,13 +252,13 @@ func main() { }) optset.Alias("h", "help") - optset.BoolFunc("list-keys", func(bool) error { + optset.FlagFunc("list-keys", func() error { listKeys(keymap, LinuxKeys) os.Exit(0) panic("unreachable") }) - optset.BoolFunc("list-x-keys", func(bool) error { + optset.FlagFunc("list-x-keys", func() error { listKeys(keymap, XKeys) os.Exit(0) panic("unreachable")