#[derive(Clone, Debug)]
pub struct Styles(clap::builder::Styles);
impl Styles {
pub const fn plain() -> Self {
Self(clap::builder::Styles::plain())
}
pub const fn styled() -> Self {
Self(clap::builder::Styles::styled())
}
pub const fn header(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.header(style);
self
}
pub const fn error(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.error(style);
self
}
pub const fn usage(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.usage(style);
self
}
pub const fn literal(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.literal(style);
self
}
pub const fn placeholder(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.placeholder(style);
self
}
pub const fn valid(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.valid(style);
self
}
pub const fn invalid(mut self, style: anstyle::Style) -> Self {
self.0 = self.0.invalid(style);
self
}
#[doc(hidden)]
pub const fn into_clap_styles(self) -> clap::builder::Styles {
self.0
}
}