Update args.rs

pull/550/head
alth0 2025-02-22 21:44:44 +01:00 committed by GitHub
parent 7197e4ab78
commit de744e8f36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -214,14 +214,6 @@ pub fn build_cli() -> Command {
.long("compress")
.value_name("level")
.help("Set zip compress level [default: low]")
)
.arg(
Arg::new("enable-hsts")
.env("DUFS_ENABLE_HSTS")
.hide_env(true)
.long("enable-hsts")
.action(ArgAction::SetTrue)
.help("Enable HTTP Strict Transport Security (HSTS) headers"),
)
.arg(
Arg::new("completions")
@ -252,6 +244,14 @@ pub fn build_cli() -> Command {
.value_name("path")
.value_parser(value_parser!(PathBuf))
.help("Path to the SSL/TLS certificate's private key"),
)
.arg(
Arg::new("enable-hsts")
.env("DUFS_ENABLE_HSTS")
.hide_env(true)
.long("enable-hsts")
.action(ArgAction::SetTrue)
.help("Enable HTTP Strict Transport Security (HSTS) headers"),
);
app