From 3ac99ed5e345db5586081fc90a9e7f8454343153 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 2 Jun 2019 01:23:55 +0200 Subject: [PATCH] Add help Signed-off-by: Knut Ahlers --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8b67398..096399c 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,15 @@ Very simple HTTP server for serving static files with ability for gzip compressi ## Usage +```console +# gziphttp -h +Usage of gziphttp: + --listen string Port/IP to listen on (default ":3000") + --log-level string Log level (debug, info, warn, error, fatal) (default "info") + -d, --serve-dir string Directory to serve files from (default ".") + --version Prints current version and exits +``` + Here is an example usage inside a Docker container containing (quite large) compiled JavaScript files: ```dockerfile