Skip to content

Commit 2c2964e

Browse files
RECENTDAYS parsing error
Fix for thread 'main' panicked at src/bin/choctaw_hog.rs:105:54: Mismatch between definition and access of `RECENTDAYS`. Could not downcast to u32, need to downcast to alloc::string::String
1 parent 0b34a00 commit 2c2964e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/choctaw_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn main() {
6868
.arg(Arg::new("SSHKEYPHRASE").long("sshkeyphrase").action(ArgAction::Set).help("Takes a passphrase to a private SSH key for git authentication, defaults to none"))
6969
.arg(Arg::new("HTTPSUSER").long("httpsuser").action(ArgAction::Set).help("Takes a username for HTTPS-based authentication"))
7070
.arg(Arg::new("HTTPSPASS").long("httpspass").action(ArgAction::Set).help("Takes a password for HTTPS-based authentication"))
71-
.arg(Arg::new("RECENTDAYS").long("recent_days").action(ArgAction::Set).conflicts_with("SINCECOMMIT").help("Filters commits to the last number of days (branch agnostic)"))
71+
.arg(Arg::new("RECENTDAYS").long("recent_days").action(ArgAction::Set).value_parser(clap::value_parser!(u32)).conflicts_with("SINCECOMMIT").help("Filters commits to the last number of days (branch agnostic)"))
7272
.arg(Arg::new("ALLOWLIST").short('a').long("allowlist").action(ArgAction::Set).help("Sets a custom allowlist JSON file"))
7373
.get_matches();
7474
match run(&matches) {

0 commit comments

Comments
 (0)