use std::fmt::{ Display, Formatter, Result };
pub struct FlagBuilder<'n> {
pub name: &'n str,
pub long: Option<&'n str>,
pub help: Option<&'n str>,
pub multiple: bool,
pub blacklist: Option<Vec<&'n str>>,
pub requires: Option<Vec<&'n str>>,
pub short: Option<char>,
pub global: bool,
pub overrides: Option<Vec<&'n str>>
}
impl<'n> Display for FlagBuilder<'n> {
fn fmt(&self, f: &mut Formatter) -> Result {
if let Some(l) = self.long {
write!(f, "--{}", l)
} else {
write!(f, "-{}", self.short.unwrap())
}
}
}