refactor: small improvement

This commit is contained in:
sigoden 2022-06-02 17:06:22 +08:00
parent 201afa6725
commit 24f885164a
2 changed files with 3 additions and 2 deletions

View file

@ -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")

View file

@ -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> {