Repository: static-web-server/static-web-server (language: rust)

Issue:
 start as a file server failed
### Search for duplicate issues

- [X] I already searched, and this issue is not a duplicate.

### Issue scope

macOS

### Describe the bug

I want to start static-web-server(sws) as a file server,but it failed.

### How to reproduce it

use this to start the server

```
sws --port 8888 --root ./build/libs --directory-listing true
error: unexpected argument 'true' found

Usage: sws [OPTIONS]
```

### Expected behavior

start the server sucessfuly

### Complementary information

<img width="876" alt="image" src="https://github.com/user-attachments/assets/1243d3a6-634c-4237-8e4c-f72c039b24b6">


### Build target

aarch64-apple-darwin

### Environment and specs

sws --version
Version:      2.32.1
Built:        2024-07-20 21:33:33 +00:00
Git commit:   97da457bcc87a4a92c94d2cf9488f742a5f178c1
Build target: x86_64-apple-darwin
Rust version: rustc 1.79.0 (129f3b996 2024-06-10)
License:      MIT OR Apache-2.0
Homepage:     https://static-web-server.net
Author:       Jose Quintana <https://joseluisq.net>

### Additional context

_No response_


Discussion / hints:
This is a regression reproducible across targets. A bug fix should come in the next few hours.

Fix patch:
diff --git a/src/settings/cli.rs b/src/settings/cli.rs
index 8c3ea5d0..42bf8d2a 100644
--- a/src/settings/cli.rs
+++ b/src/settings/cli.rs
@@ -155,7 +155,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_HTTP2_TLS",
     )]
@@ -181,7 +181,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         requires_if("true", "http2"),
         env = "SERVER_HTTPS_REDIRECT"
@@ -252,7 +252,7 @@ pub struct General {
         default_value = "true",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_COMPRESSION",
     )]
@@ -302,7 +302,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_COMPRESSION_STATIC",
     )]
@@ -318,7 +318,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_DIRECTORY_LISTING",
     )]
@@ -355,7 +355,7 @@ pub struct General {
         default_value_if("http2", "true", Some("true")),
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_SECURITY_HEADERS",
     )]
@@ -376,7 +376,7 @@ pub struct General {
         default_value = "true",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_CACHE_CONTROL_HEADERS",
     )]
@@ -407,7 +407,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_LOG_REMOTE_ADDRESS",
     )]
@@ -419,7 +419,7 @@ pub struct General {
         default_value = "true",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_REDIRECT_TRAILING_SLASH",
     )]
@@ -431,7 +431,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_IGNORE_HIDDEN_FILES",
     )]
@@ -443,7 +443,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_DISABLE_SYMLINKS",
     )]
@@ -455,7 +455,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_HEALTH",
     )]
@@ -469,7 +469,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_EXPERIMENTAL_METRICS",
     )]
@@ -481,7 +481,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_MAINTENANCE_MODE"
     )]
@@ -518,7 +518,7 @@ pub struct General {
         default_value = "false",
         default_missing_value("true"),
         num_args(0..=1),
-        require_equals(true),
+        require_equals(false),
         action = clap::ArgAction::Set,
         env = "SERVER_WINDOWS_SERVICE",
     )]


Test patch: