Struct app::Opt [] [src]

pub struct Opt<'app> { /* fields omitted */ }

Option

Methods

impl<'app> Opt<'app>
[src]

[src]

name and value, App will maintain the value(&mut T).

for example,

  • follows's charset is Opt's Name

  • h, v and cs is Opt's short

  • help, version and charset is Opt's long

  • help is Opt's help message

--charset charset,-cs charset         sets the charset Zipcs using
--help,-h                             show the help message
--version,-v                          show the version message

[src]

Default is Opt's name

[src]

set Opts optional as true(default is false)(override OptValueParse's default and check).

App will will not check it's value if the Opt not occurs and create help message without default's value if it is true.

[src]

short

[src]

long

[src]

help message

[src]

impl<'app> Opt<'app>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'app> Debug for Opt<'app>
[src]

[src]

Formats the value using the given formatter.