Repository: alexpasmantier/television (language: rust)

Issue:
Flag --help missing
**Description**

In release 0.10.0, the -h and --help command line flag does not work. It prints an error about unexpected argument. In the previous release this worked.

**Example**
```bash
$ ./tv -h
error: unexpected argument found

$ ./tv --help
error: unexpected argument found

$ ./tv --version
television 0.10.0
```

**Expected behavior**

TV prints command line help with arguments and flags.

**Environment**
 - OS: Linux x86_64
 - Project version: 0.10.0



Discussion / hints:

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index 2d5835a..9701bcf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -343,8 +343,10 @@ version = "4.5.26"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "96b01801b5fc6a0a232407abc821660c9c6d25a1cafc0d4f85f29fb8d9afc121"
 dependencies = [
+ "anstream",
  "anstyle",
  "clap_lex",
+ "strsim",
 ]
 
 [[package]]
@@ -1870,7 +1872,7 @@ dependencies = [
 
 [[package]]
 name = "television"
-version = "0.10.0"
+version = "0.10.1"
 dependencies = [
  "anyhow",
  "bat",
diff --git a/Cargo.toml b/Cargo.toml
index 6e8206f..e09f89a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "television"
-version = "0.10.0"
+version = "0.10.1"
 edition = "2021"
 description = "The revolution will be televised."
 license = "MIT"
@@ -40,12 +40,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
 rustc-hash = "2.1"
 syntect = { version = "5.2", default-features = false }
 unicode-width = "0.2"
-clap = { version = "4.5", default-features = false, features = [
-  "std",
-  "derive",
-  "cargo",
-  "string",
-] }
+clap = { version = "4.5", features = ["derive", "cargo", "string"] }
 serde = { version = "1.0", features = ["derive"] }
 ratatui = { version = "0.29", features = ["serde", "macros"] }
 better-panic = "0.3"


Test patch: