use optset.FlagFunc
This commit is contained in:
parent
7b38f27d30
commit
1b79ad39bb
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue