summaryrefslogtreecommitdiffstats
path: root/cmd/gotop/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gotop/main.go')
-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)