Struct Param
rustop
pub struct Param<'a> { /* fields omitted */ }
A command line parameter.
impl<'a> Param<'a>
fn desc<'b: 'a>(&mut self, desc: &'b str) -> &mut Self
Set the description of this parameter.
fn name(&mut self, name: &str) -> &mut Self
Set the (short) name of this parameter.
fn required(&mut self, required: bool) -> &mut Self
Mark this option as required.