refactor: small improvement
This commit is contained in:
parent
201afa6725
commit
24f885164a
2 changed files with 3 additions and 2 deletions
|
@ -64,12 +64,12 @@ fn app() -> clap::Command<'static> {
|
|||
.arg(
|
||||
Arg::new("render-index")
|
||||
.long("render-index")
|
||||
.help("Render existing index.html when requesting a directory"),
|
||||
.help("Render index.html when requesting a directory"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("render-spa")
|
||||
.long("render-spa")
|
||||
.help("Render spa, rewrite all not-found requests to `index.html"),
|
||||
.help("Render for single-page application"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("auth")
|
||||
|
|
|
@ -726,6 +726,7 @@ fn print_listening(address: &str, port: u16, tls: bool) {
|
|||
eprintln!(" {}://{}:{}", protocol, addr, port);
|
||||
}
|
||||
}
|
||||
eprintln!();
|
||||
}
|
||||
|
||||
fn retrive_listening_addrs(address: &str) -> Vec<String> {
|
||||
|
|
Loading…
Reference in a new issue