summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2021-01-26 11:56:01 -0600
committerSean E. Russell <ser@ser1.net>2021-01-26 11:56:01 -0600
commit18c07d8c4492faa766239c1f9fa634ca8880e076 (patch)
treee679647c5c94d5fede01180ad2f3623129c5844f /cmd
parent2f0eca1cc6a59f786a475debce7811664ce7451c (diff)
Fixes #157, add list of translations to help text.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotop/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index cfb8ab8..f782191 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -125,6 +125,15 @@ func parseArgs() error {
fmt.Println(tr.Value("help.help"))
case "widgets":
fmt.Println(tr.Value("help.widgets"))
+ case "langs":
+ vs, err := translations.AssetDir("")
+ if err != nil {
+ return err
+ }
+ for _, v := range vs {
+ v = strings.TrimSuffix(v, ".toml")
+ fmt.Println(v)
+ }
default:
fmt.Printf(tr.Value("error.unknownopt", *list))
os.Exit(1)