Skip to content

Commit

Permalink
fix: fix failed downcast to NumberFormatStyle when parsing argument
Browse files Browse the repository at this point in the history
  • Loading branch information
unwrinkled committed Dec 11, 2024
1 parent 029045a commit ce8d853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Cli {
Arg::new("num_format_style")
.long("num-format")
.short('n')
.value_parser(["commas", "dots", "plain", "underscores"])
.value_parser(value_parser!(NumberFormatStyle))
.conflicts_with("output")
.help(
"Format of printed numbers, i.e., plain (1234, default), \
Expand Down

0 comments on commit ce8d853

Please sign in to comment.