Struct man::Manual [−][src]
pub struct Manual { /* fields omitted */ }
Man page struct.
Methods
impl Manual
[src]
impl Manual
pub fn new(name: &str) -> Self
[src]
pub fn new(name: &str) -> Self
Create a new instance.
pub fn about(self, about: String) -> Self
[src]
pub fn about(self, about: String) -> Self
Add a description.
Add an author.
pub fn env(self, env: Env) -> Self
[src]
pub fn env(self, env: Env) -> Self
Add an environment variable.
pub fn flag(self, flag: Flag) -> Self
[src]
pub fn flag(self, flag: Flag) -> Self
Add an flag.
pub fn option(self, opt: Opt) -> Self
[src]
pub fn option(self, opt: Opt) -> Self
Add an option.
pub fn arg(self, arg: Arg) -> Self
[src]
pub fn arg(self, arg: Arg) -> Self
Add a positional argument. The items are displayed in the order they're pushed.
pub fn render(self) -> String
[src]
pub fn render(self) -> String
Render to a string.
Trait Implementations
impl Debug for Manual
[src]
impl Debug for Manual
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Manual
[src]
impl Clone for Manual