summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (europa) <paul@buetow.org>2015-05-31 02:03:34 +0100
committerPaul Buetow (europa) <paul@buetow.org>2015-05-31 02:03:34 +0100
commit505454e4a79dc816649f2c54d4faf0fadbde3e21 (patch)
treed1929c6f134420d83695532aa7346f225052406f
parentd3bca025bc983aa8d704770b03508a1f332582f9 (diff)
add help.txt
-rw-r--r--Makefile2
-rw-r--r--help.txt4
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1a05035..e6a23bc 100644
--- a/Makefile
+++ b/Makefile
@@ -2,3 +2,5 @@ install:
go install github.com/buetow/gstat/gstat
run:
go run gstat/main.go
+docu: install
+ sh -c '($(GOPATH)/bin/gstat -h 2>&1)|sed 1d > help.txt;exit 0'
diff --git a/help.txt b/help.txt
new file mode 100644
index 0000000..b49082a
--- /dev/null
+++ b/help.txt
@@ -0,0 +1,4 @@
+ -b=false: Use binary instead of deciman (e.g. kiB an not kB
+ -i=2: Update interval in seconds
+ -m=1: The stats mode: 0:bytes 1:syscalls 2:chars
+ -v=false: Print the version