upercase PORT in usage

This commit is contained in:
Damjan Georgievski 2018-07-21 19:31:18 +02:00
parent e707d1a05e
commit 9373a1cb9c
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@ a simple http server like `python -m http.server` but:
``` ```
USAGE: USAGE:
http-server [OPTIONS] [port] http-server [OPTIONS] [PORT]
FLAGS: FLAGS:
-h, --help Prints help information -h, --help Prints help information
@ -19,7 +19,7 @@ OPTIONS:
--chdir <DIRECTORY> Specify directory to server [default: .] --chdir <DIRECTORY> Specify directory to server [default: .]
ARGS: ARGS:
<port> Specify alternate port [default: 8000] <PORT> Specify alternate port [default: 8000]
``` ```
## FAQ ## FAQ

View file

@ -36,6 +36,7 @@ fn main() -> Result<(), io::Error> {
.default_value("0.0.0.0") .default_value("0.0.0.0")
.takes_value(true)) .takes_value(true))
.arg(Arg::with_name("port") .arg(Arg::with_name("port")
.value_name("PORT")
.help("Specify alternate port") .help("Specify alternate port")
.default_value("8000") .default_value("8000")
.index(1)); .index(1));