#[derive(Debug, Clone, Default, PartialEq)]
pub struct RFlag {
pub name: String,
pub short: Option<char>,
pub description: String,
}
#[derive(Debug, Clone)]
pub struct Flag {
pub name: String,
pub description: String,
pub value: Option<String>,
}
impl RFlag {
pub fn new(name: impl Into<String>, description: impl Into<String>) -> Self {
let name = name.into();
let description = description.into();
Self { name, description, ..Self::default() }
}
pub fn short(mut self, short: char) -> Self {
self.short = Some(short);
self
}
}