From dd14e7ec356c736715f2d7bbf763d8d0ec2f3408 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 7 Dec 2023 13:43:45 +0100 Subject: [PATCH] don't show shortcuts in help (clutters it) --- calc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calc.go b/calc.go index d817844..00c852e 100644 --- a/calc.go +++ b/calc.go @@ -520,7 +520,9 @@ func sortcommands(hash Commands) []string { keys := make([]string, 0, len(hash)) for key := range hash { - keys = append(keys, key) + if len(key) > 1 { + keys = append(keys, key) + } } sort.Strings(keys)