diff options
author | Sean E. Russell <ser@ser1.net> | 2020-02-14 07:52:33 -0600 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-02-14 07:52:33 -0600 |
commit | 64d4a81212a43a4b805b92963fd4da230b3ca313 (patch) | |
tree | 0d4b60ca935fce9fafb92a311fe4178529365f36 /cmd | |
parent | 7594f3ecec8d830fe4241c9a01f9939c932bb132 (diff) | |
parent | fcdb71bfad2c782a480e980821f085e090cb437c (diff) |
Merge remote-tracking branch 'mattLLVW/feature/network_interface_list'
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gotop/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go index e9a9a02..bf9b72d 100644 --- a/cmd/gotop/main.go +++ b/cmd/gotop/main.go @@ -56,9 +56,13 @@ Options: -f, --fahrenheit Show temperatures in fahrenheit. -s, --statusbar Show a statusbar with the time. -b, --battery Show battery level widget ('minimal' turns off). - -i, --interface=NAME Select network interface [default: all]. -B, --bandwidth=bits Specify the number of bits per seconds. -l, --layout=NAME Name of layout spec file for the UI. Looks first in $XDG_CONFIG_HOME/gotop, then as a path. Use "-" to pipe. + -i, --interface=NAME Select network interface [default: all]. + +Several interfaces can be defined using comma separated values. + +Interfaces can also be ignored using ! Colorschemes: default @@ -139,6 +143,7 @@ Colorschemes: if fahrenheit { conf.TempScale = w.Fahrenheit } + conf.NetInterface, _ = args["--interface"].(string) return conf, nil } |