mod day1; fn main() { let day = std::env::args().skip(1).next(); println!("day: {:?}", day); let result = match day.as_ref().map(|v| v.as_ref()) { Some("day1a") => day1::part1(), Some("day1b") => day1::part2(), _ => panic!("unrecognized day"), }; println!("{:?} Result: {}", day, result); }