Skip to content
Snippets Groups Projects
Commit a28b1842 authored by thewawar's avatar thewawar
Browse files

Update README and clap help

parent 99de664d
No related branches found
No related tags found
No related merge requests found
...@@ -5,27 +5,30 @@ ...@@ -5,27 +5,30 @@
### Command Line Arguments ### Command Line Arguments
``` ```
Simple HTTP(s) Server 0.4.1 Simple HTTP(s) Server 0.4.2
USAGE: USAGE:
simple-http-server [FLAGS] [OPTIONS] [root] simple-http-server [FLAGS] [OPTIONS] [--] [root]
FLAGS: FLAGS:
-h, --help Prints help information -h, --help Prints help information
-i, --index Enable automatic render index page [index.html, index.htm] -i, --index Enable automatic render index page [index.html, index.htm]
--nocache Disable http cache --nocache Disable http cache
--norange Disable header::Range support (partial download) --norange Disable header::Range support (partial request)
--nosort Disable directory entries sort (by: name, modified, size) --nosort Disable directory entries sort (by: name, modified, size)
-u, --upload Enable upload files (multiple select) -u, --upload Enable upload files (multiple select)
-V, --version Prints version information -V, --version Prints version information
OPTIONS: OPTIONS:
-a, --auth <auth> HTTP Basic Auth (username:password) -a, --auth <auth> HTTP Basic Auth (username:password)
--cert <cert> TLS/SSL certificate (pkcs#12 format) --cert <cert> TLS/SSL certificate (pkcs#12 format)
--certpass <certpass> TLS/SSL certificate password --certpass <certpass> TLS/SSL certificate password
--ip <ip> IP address to bind [default: 0.0.0.0] -c, --compress <compress>... Enable file compression: gzip/deflate
-p, --port <port> Port number [default: 8000] Example: -c=js,d.ts
-t, --threads <threads> How many worker threads [default: 3] Note: disabled on partial request!
--ip <ip> IP address to bind [default: 0.0.0.0]
-p, --port <port> Port number [default: 8000]
-t, --threads <threads> How many worker threads [default: 3]
ARGS: ARGS:
<root> Root directory <root> Root directory
......
...@@ -153,7 +153,7 @@ fn main() { ...@@ -153,7 +153,7 @@ fn main() {
.multiple(true) .multiple(true)
.value_delimiter(",") .value_delimiter(",")
.takes_value(true) .takes_value(true)
.help("Enable file compression: gzip/deflate (Note: disabled on partial request!)")) .help("Enable file compression: gzip/deflate\n Example: -c=js,d.ts\n Note: disabled on partial request!"))
.arg(clap::Arg::with_name("threads") .arg(clap::Arg::with_name("threads")
.short("t") .short("t")
.long("threads") .long("threads")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment