Update readme and cli arg help menu

This commit is contained in:
Caleb Bassi 2019-01-04 09:51:31 -08:00
parent 37e1d9dc13
commit d8434b87c8
2 changed files with 9 additions and 10 deletions

View File

@ -7,7 +7,6 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi
<img src="./assets/demo.gif" />
<img src="./assets/minimal.png" width="96%" />
<img src="./assets/battery.png"/>
</div>
@ -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

View File

@ -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)