Struct app::Helper [] [src]

pub struct Helper { /* fields omitted */ }

Helper

Methods

impl Helper
[src]

name

version

description

name, email

url_name, url

impl Helper
[src]

impl Helper
[src]

exit with the status

format!("{} {}", self.name(), self.version())

print ver(self.ver) message and exit with the status

format!("ERROR:\n {}\n\n", error)

print error(self.err(error)) message to stderr and exit with the status

print error message line(2) with Red color(fg)

all Command's help message(main and sub_cmd)

main's help mesage

print main's help message and exit with the status

self.err(error) + self.help()

print error and help message(self.help_err(error)) to stderr and exit with the status

get sub_command's help message

print sub_command's help message and exit with the status

self.err(error) + self.help_cmd(cmd_name)

print error and sub_command's help message to stderr,s exit with the status

Trait Implementations

impl Debug for Helper
[src]

Formats the value using the given formatter.

impl Default for Helper
[src]

Returns the "default value" for a type. Read more