/// Additional config files or dirs, which can override the others
#[structopt(long, multiple=true, number_of_values=1)]
pub extra_config: Vec<PathBuf>,
-
- /// Print configuration rather than running
- #[structopt(long)]
- pub print_config: bool,
}
pub trait InspectableConfigValue {
};
}
+pub struct DisplayInspectable<'i>(pub &'i dyn InspectableConfigValue);
+impl<'i> Display for DisplayInspectable<'i> {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ InspectableConfigValue::fmt(self.0, f)
+ }
+}
+
impl_inspectable_config_value!{ String as Display }
impl_inspectable_config_value!{ u16 as Display }
impl_inspectable_config_value!{ u32 as Display }