Repository: Kobzol/cargo-remark (language: rust)

Issue:
multiple filters are not parsed correctly
I investigated a little into clap and sent a PR with the fix.


Discussion / hints:

Fix patch:
diff --git a/src/bin/analyze-remarks.rs b/src/bin/analyze-remarks.rs
index be0c921..0840d0f 100644
--- a/src/bin/analyze-remarks.rs
+++ b/src/bin/analyze-remarks.rs
@@ -42,6 +42,7 @@ struct Args {
     /// Optimization remark kinds that should be ignored.
     #[arg(
         long = "filter",
+        value_delimiter = ',',
         default_values = cargo_remark::DEFAULT_KIND_FILTER
     )]
     filter_kind: Vec<String>,
diff --git a/src/main.rs b/src/main.rs
index af2fcf2..fd02e16 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -49,6 +49,7 @@ struct SharedArgs {
     /// Optimization remark kinds that should be ignored.
     #[arg(
         long = "filter",
+        value_delimiter = ',',
         default_values = cargo_remark::DEFAULT_KIND_FILTER
     )]
     filter_kind: Vec<String>,


Test patch: