Skip to content

Commit

Permalink
don't show shortcuts in help (clutters it) (#27)
Browse files Browse the repository at this point in the history
* don't show shortcuts in help (clutters it)

* bump version

---------

Co-authored-by: Thomas von Dein <[email protected]>
  • Loading branch information
TLINDEN and Thomas von Dein authored Dec 7, 2023
1 parent 5557ad5 commit 846b3e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,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)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
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.
Expand Down

0 comments on commit 846b3e6

Please sign in to comment.