From d8434b87c89534c966d4ef8f9c3ff2360ab3bfb6 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Fri, 4 Jan 2019 09:51:31 -0800 Subject: [PATCH] Update readme and cli arg help menu --- README.md | 11 +++++------ main.go | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 43e4cf3..818d10e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi - @@ -93,11 +92,11 @@ To make a custom colorscheme, check out the [template](./colorschemes/template.g `-c`, `--color=NAME` Set a colorscheme. `-m`, `--minimal` Only show CPU, Mem and Process widgets. `-r`, `--rate=RATE` Number of times per second to update CPU and Mem widgets [default: 1]. -`-v`, `--version` Show version. +`-v`, `--version` Print version and exit. `-p`, `--percpu` Show each CPU in the CPU widget. -`-a`, `--averagecpu` Show average CPU in the CPU widget. -`-b`, `--bar` Show a statusbar with the time. -`-t`, `--battery` Show battery level (defaults to false, `minimal` turns off) +`-a`, `--averagecpu` Show average CPU in the CPU widget. +`-s`, `--statusbar` Show a statusbar with the time. +`-b`, `--battery` Show battery level widget (`minimal` turns off). [widget preview](./assets/battery.png) ## Building deb/rpms @@ -121,7 +120,7 @@ This will place the built packages into the `dist` folder. - [exrook/drawille-go](https://github.com/exrook/drawille-go) - [shirou/gopsutil](https://github.com/shirou/gopsutil) - [goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) -- [battery](https://github.com/distatus/battery) +- [distatus/battery](https://github.com/distatus/battery) ## Stargazers over time diff --git a/main.go b/main.go index 869cedc..1a6abb0 100644 --- a/main.go +++ b/main.go @@ -62,12 +62,12 @@ Options: -h, --help Show this screen. -m, --minimal Only show CPU, Mem and Process widgets. -r, --rate=RATE Number of times per second to update CPU and Mem widgets [default: 1]. - -v, --version Show version. + -v, --version Print version and exit. -p, --percpu Show each CPU in the CPU widget. -a, --averagecpu Show average CPU in the CPU widget. -f, --fahrenheit Show temperatures in fahrenheit. - -t, --battery Show battery charge over time ('minimal' disables; widget updates slowly) - -b, --bar Show a statusbar with the time. + -s, --statusbar Show a statusbar with the time. + -b, --battery Show battery level widget ('minimal' turns off). Colorschemes: default @@ -92,7 +92,7 @@ Colorschemes: minimal, _ = args["--minimal"].(bool) - statusbar, _ = args["--bar"].(bool) + statusbar, _ = args["--statusbar"].(bool) rateStr, _ := args["--rate"].(string) rate, err := strconv.ParseFloat(rateStr, 64)