Skip to content

Commit

Permalink
Fix parsing of the --dpi parameter
Browse files Browse the repository at this point in the history
clap would consider it a String, not an i16
  • Loading branch information
tanuva committed Nov 20, 2023
1 parent 7ca1923 commit 3bac112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion escl-scan-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ fn main() {
.short('d')
.long("dpi")
.help("Scan resolution")
.default_value("75"),
.default_value("75")
.value_parser(value_parser!(i16)),
)
.arg(
Arg::new("force")
Expand Down

0 comments on commit 3bac112

Please sign in to comment.