From ce8d8535276a2e41878981a8199232986ab96c6b Mon Sep 17 00:00:00 2001 From: unwrinkled Date: Wed, 11 Dec 2024 14:49:49 +0100 Subject: [PATCH] fix: fix failed downcast to NumberFormatStyle when parsing argument --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 6849d1ed0..00ee40b47 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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), \