summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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