Skip to content

Commit

Permalink
fix parsing filter values
Browse files Browse the repository at this point in the history
Multiple values were parsed as a single string. Now they correctly use a  comma to separate them as specificied in the readme.
  • Loading branch information
joseluis authored and Kobzol committed Sep 28, 2023
1 parent 818a936 commit a5bdc57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/analyze-remarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit a5bdc57

Please sign in to comment.