Skip to content

Commit

Permalink
Merge pull request #149 from alicektx/master
Browse files Browse the repository at this point in the history
Update main.go
  • Loading branch information
xxxserxxx authored Nov 23, 2020
2 parents 5ea991e + e8d05fa commit a8a238a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/gotop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func parseArgs() error {
versioN := opflag.BoolP("", "V", false, "Print version and exit.")
opflag.BoolVarP(&conf.PercpuLoad, "percpu", "p", conf.PercpuLoad, "Show each CPU in the CPU widget.")
opflag.BoolVarP(&conf.AverageLoad, "averagecpu", "a", conf.AverageLoad, "Show average CPU in the CPU widget.")
fahrenheit := opflag.BoolP("fahrenheit", "f", conf.TempScale == 'F', "Show temperatures in fahrenheit.Show temperatures in fahrenheit.")
fahrenheit := opflag.BoolP("fahrenheit", "f", conf.TempScale == 'F', "Show temperatures in fahrenheit.")
opflag.BoolVarP(&conf.Statusbar, "statusbar", "s", conf.Statusbar, "Show a statusbar with the time.")
opflag.DurationVarP(&conf.UpdateInterval, "rate", "r", conf.UpdateInterval, "Refresh frequency. Most time units accepted. `1m` = refresh every minute. `100ms` = refresh every 100ms.")
opflag.StringVarP(&conf.Layout, "layout", "l", conf.Layout, `Name of layout spec file for the UI. Use "-" to pipe.`)
Expand Down Expand Up @@ -506,7 +506,8 @@ const _colorschemes = `Built-in colorschemes:
solarized16-dark
solarized16-light
monokai
vice`
vice
nord`
const _widgets = `Widgets that can be used in layouts:
cpu - CPU load graph
mem - Physical & swap memory use graph
Expand Down

0 comments on commit a8a238a

Please sign in to comment.