From fac420436bd51b681d1ea64e47c09d2b8832f80b Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Tue, 21 Jul 2020 00:11:16 +0200 Subject: Show full usage in README --- README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 3dee618..a189caa 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,73 @@ Sometimes this is just a more practical and quick way than doing things properly - Pretty themes - Scan QR code for quick access +## Usage + + miniserve 0.7.0 + Sven-Hendrik Haase , Boastful Squirrel + For when you really just want to serve some files over HTTP right now! + + USAGE: + miniserve [FLAGS] [OPTIONS] [--] [PATH] + + FLAGS: + -r, --enable-tar + Enable tar archive generation + + -z, --enable-zip + Enable zip archive generation + + WARNING: Zipping large directories can result in out-of-memory exception because zip generation is done in + memory and cannot be sent on the fly + -u, --upload-files + Enable file uploading + + -h, --help + Prints help information + + -P, --no-symlinks + Do not follow symbolic links + + -o, --overwrite-files + Enable overriding existing files during file upload + + -q, --qrcode + Enable QR code display + + --random-route + Generate a random 6-hexdigit route + + -V, --version + Prints version information + + -v, --verbose + Be verbose, includes emitting access logs + + + OPTIONS: + -a, --auth ... + Set authentication. Currently supported formats: username:password, username:sha256:hash, + username:sha512:hash (e.g. joe:123, + joe:sha256:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3) + -c, --color-scheme + Default color scheme [default: Squirrel] [possible values: Archlinux, Zenburn, + Monokai, Squirrel] + --index + The name of a directory index file to serve, like "index.html" + + Normally, when miniserve serves a directory, it creates a listing for that directory. However, if a + directory contains this file, miniserve will serve that file instead. + -i, --interfaces ... + Interface to listen on + + -p, --port + Port to use [default: 8080] + + + ARGS: + + Which path to serve + ## How to install Packaging status -- cgit v1.2.3