use std::fmt::Display;
use clap::ValueEnum;
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
pub enum Year {
#[default]
Y2015,
Y2016,
Y2017,
Y2018,
Y2019,
Y2020,
Y2021,
Y2022,
Y2023,
Y2024,
Y2025,
}
impl Display for Year {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Y2015 => write!(f, "{}", 2015),
Self::Y2016 => write!(f, "{}", 2016),
Self::Y2017 => write!(f, "{}", 2017),
Self::Y2018 => write!(f, "{}", 2018),
Self::Y2019 => write!(f, "{}", 2019),
Self::Y2020 => write!(f, "{}", 2020),
Self::Y2021 => write!(f, "{}", 2021),
Self::Y2022 => write!(f, "{}", 2022),
Self::Y2023 => write!(f, "{}", 2023),
Self::Y2024 => write!(f, "{}", 2024),
Self::Y2025 => write!(f, "{}", 2025),
}
}
}