add available connectors to help dialog

This commit is contained in:
Bradley Cicenas
2018-01-30 10:54:13 +00:00
parent ac1ce18143
commit a3b67e4607
2 changed files with 18 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"os"
"runtime"
"strings"
"github.com/bcicen/ctop/config"
"github.com/bcicen/ctop/connector"
@@ -138,7 +139,7 @@ func panicExit() {
}
}
var helpMsg = `ctop - container metric viewer
var helpMsg = `ctop - interactive container viewer
usage: ctop [options]
@@ -148,4 +149,6 @@ options:
func printHelp() {
fmt.Println(helpMsg)
flag.PrintDefaults()
fmt.Printf("\navailable connectors: ")
fmt.Println(strings.Join(connector.Enabled(), ", "))
}