upercase PORT in usage
This commit is contained in:
parent
e707d1a05e
commit
9373a1cb9c
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ a simple http server like `python -m http.server` but:
|
|||
|
||||
```
|
||||
USAGE:
|
||||
http-server [OPTIONS] [port]
|
||||
http-server [OPTIONS] [PORT]
|
||||
|
||||
FLAGS:
|
||||
-h, --help Prints help information
|
||||
|
@ -19,7 +19,7 @@ OPTIONS:
|
|||
--chdir <DIRECTORY> Specify directory to server [default: .]
|
||||
|
||||
ARGS:
|
||||
<port> Specify alternate port [default: 8000]
|
||||
<PORT> Specify alternate port [default: 8000]
|
||||
```
|
||||
|
||||
## FAQ
|
||||
|
|
|
@ -36,6 +36,7 @@ fn main() -> Result<(), io::Error> {
|
|||
.default_value("0.0.0.0")
|
||||
.takes_value(true))
|
||||
.arg(Arg::with_name("port")
|
||||
.value_name("PORT")
|
||||
.help("Specify alternate port")
|
||||
.default_value("8000")
|
||||
.index(1));
|
||||
|
|
Loading…
Add table
Reference in a new issue