use optset.FlagFunc

This commit is contained in:
John Gebbie 2023-04-28 16:41:56 +01:00
parent 7b38f27d30
commit 1b79ad39bb

View file

@ -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")