From 315544138cbaa718cb4f34bc29387ad85ce6728d Mon Sep 17 00:00:00 2001 From: Jan Halfar Date: Mon, 7 Mar 2016 16:25:01 +0100 Subject: [PATCH] updated usage example --- Makefile | 4 ++-- README.md | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index a492a71..5e9427b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SHELL := /bin/bash options: - echo "you can clean | test | build | build-arch | run | package" + echo "you can clean | test | build | build-arch | package" clean: rm -fv bin/contentserve* build: clean @@ -12,4 +12,4 @@ build-arch: clean package: build pkg/build.sh test: - go test -v github.com/foomo/contentserver/server/repo + go test ./... diff --git a/README.md b/README.md index 6bb4b44..1d65539 100644 --- a/README.md +++ b/README.md @@ -47,12 +47,15 @@ Usage ``` $ contentserver --help - -Usage of bin/contentserver: - -address="127.0.0.1:8081": address to bind host:port - -logLevel="record": one of error, record, warning, notice, debug - -protocol="tcp": what protocol to server for - -vardir="127.0.0.1:8081": where to put my data +Usage of contentserver: + -address string + address to bind host:port (default "127.0.0.1:8081") + -log-level string + one of error, record, warning, notice, debug (default "record") + -var-dir string + where to put my data (default "/var/lib/contentserver") + -version + version info ``` License