use clap::{Arg, ArgAction};
use super::ClapArg;
use crate::{constant, helper};
pub struct VersionClapArg;
impl ClapArg for VersionClapArg {
fn build() -> Arg {
Arg::new("version")
.id("VERSION")
.short(helper::to_char(constant::cli_options::VERSION.short))
.long(constant::cli_options::VERSION.long)
.help(constant::help_messages::VERSION)
.action(ArgAction::SetTrue)
}
}