diff --git a/calc.go b/calc.go index bde0b47..5fdd6da 100644 --- a/calc.go +++ b/calc.go @@ -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) diff --git a/main.go b/main.go index 3785060..9855a36 100644 --- a/main.go +++ b/main.go @@ -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.