chore: little improves

This commit is contained in:
sigoden
2022-06-20 15:11:39 +08:00
parent deb6365a28
commit 68139c6263
3 changed files with 32 additions and 24 deletions

View File

@@ -48,14 +48,6 @@ fn app() -> Command<'static> {
.value_name("path")
.help("Specify an url path prefix"),
)
.arg(
Arg::new("auth-method")
.long("auth-method")
.help("Choose auth method")
.possible_values(["basic", "digest"])
.default_value("digest")
.value_name("value"),
)
.arg(
Arg::new("auth")
.short('a')
@@ -65,6 +57,14 @@ fn app() -> Command<'static> {
.multiple_occurrences(true)
.value_name("rule"),
)
.arg(
Arg::new("auth-method")
.long("auth-method")
.help("Select auth method")
.possible_values(["basic", "digest"])
.default_value("digest")
.value_name("value"),
)
.arg(
Arg::new("allow-all")
.short('A')