From 1b79ad39bb30ea14b59217a6d9cc7f9ace0560bc Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Fri, 28 Apr 2023 16:41:56 +0100 Subject: [PATCH] use optset.FlagFunc --- dotool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")