summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2019-02-16 01:56:35 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2019-02-22 11:50:16 -0800
commit357ff01fe3d387ae6d28dc3eab6b11a49ab58eae (patch)
treefdf737141fbcffa010ecdb77b6365c076c193ce3
parent328395123a6ae32e7446bf4f2c590399a6db74d9 (diff)
Change -v to -V for version
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md2
-rw-r--r--CHANGELOG.md4
-rw-r--r--Makefile2
-rw-r--r--README.md2
-rw-r--r--main.go2
5 files changed, 8 insertions, 4 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 6ec36d9..ab7eb8f 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -8,7 +8,7 @@ about: Template to report bugs.
Required information:
-- gotop version (`gotop -v`):
+- gotop version (`gotop -V`):
- The output of `uname -a`:
- Terminal emulator (e.g. iTerm or gnome terminal):
- Any relevenat hardware info:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c91a00d..c48b2f6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add vice colorscheme [#115]
+### Changed
+
+- Change `-v` cli option to `-V` for version
+
### Fixed
- Fix disk I/O [#114] [#116]
diff --git a/Makefile b/Makefile
index 6fabbd3..9517f2e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
# requires dockerd to be running
# builds the packages for amd64
-VERSION=$(shell go run main.go -v)
+VERSION=$(shell go run main.go -V)
ARCHIVE="gotop_$(VERSION)_linux_amd64"
.PHONY: all
diff --git a/README.md b/README.md
index d20631d..00ba501 100644
--- a/README.md
+++ b/README.md
@@ -92,7 +92,7 @@ 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` Print version and exit.
+`-V`, `--version` Print version and exit.
`-p`, `--percpu` Show each CPU in the CPU widget.
`-a`, `--averagecpu` Show average CPU in the CPU widget.
`-s`, `--statusbar` Show a statusbar with the time.
diff --git a/main.go b/main.go
index 4694d43..17bece8 100644
--- a/main.go
+++ b/main.go
@@ -71,7 +71,7 @@ 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 Print version and exit.
+ -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.