don't show shortcuts in help (clutters it) (#27)

* don't show shortcuts in help (clutters it)

* bump version

---------

Co-authored-by: Thomas von Dein <tom@vondein.org>
This commit is contained in:
T.v.Dein
2023-12-07 13:47:32 +01:00
committed by GitHub
parent 5557ad5f99
commit 846b3e63fc
2 changed files with 4 additions and 2 deletions

View File

@@ -518,7 +518,9 @@ func sortcommands(hash Commands) []string {
keys := make([]string, 0, len(hash)) keys := make([]string, 0, len(hash))
for key := range hash { for key := range hash {
keys = append(keys, key) if len(key) > 1 {
keys = append(keys, key)
}
} }
sort.Strings(keys) sort.Strings(keys)

View File

@@ -30,7 +30,7 @@ import (
lua "github.com/yuin/gopher-lua" lua "github.com/yuin/gopher-lua"
) )
const VERSION string = "2.0.11" const VERSION string = "2.0.12"
const Usage string = `This is rpn, a reverse polish notation calculator cli. const Usage string = `This is rpn, a reverse polish notation calculator cli.