fn long(&mut self, arg: &Arg<'c>) -> io::Result<()> {
        debug!("Help::long");
        if !arg.has_switch() {
            return Ok(());
        }
        if arg.is_set(ArgSettings::TakesValue) {
            if let Some(l) = arg.long {
                if arg.short.is_some() {
                    self.none(", ")?;
                }
                self.good(&format!("--{}", l))?
            }

            let sep = if arg.is_set(ArgSettings::RequireEquals) {
                "="
            } else {
                " "
            };
            self.none(sep)?;
        } else if let Some(l) = arg.long {
            if arg.short.is_some() {
                self.none(", ")?;
            }
            self.good(&format!("--{}", l))?;
        }
        Ok(())
    }
/// Writes argument's long command to the wrapped stream.
Writes argument's long command to the wrapped stream.
Writes argument ' s long command to the wrapped stream .
fn long(&mut self, arg: &Arg<'c>) -> io::Result<()> {
        debug!("Help::long");
        if !arg.has_switch() {
            return Ok(());
        }
        if arg.is_set(ArgSettings::TakesValue) {
            if let Some(l) = arg.long {
                if arg.short.is_some() {
                    self.none(", ")?;
                }
                self.good(&format!("--{}", l))?
            }
            let sep = if arg.is_set(ArgSettings::RequireEquals) {
                "="
            } else {
                " "
            };
            self.none(sep)?;
        } else if let Some(l) = arg.long {
            if arg.short.is_some() {
                self.none(", ")?;
            }
            self.good(&format!("--{}", l))?;
        }
        Ok(())
    }
fn long ( & mut self , arg : & Arg < ' c > ) -> io :: Result < ( ) > { debug ! ( " " ) ; if ! arg . has_switch ( ) { return Ok ( ( ) ) ; } if arg . is_set ( ArgSettings :: TakesValue ) { if let Some ( l ) = arg . long { if arg . short . is_some ( ) { self . none ( " " ) ? ; } self . good ( & format ! ( " " l ) ) ? } let sep = if arg . is_set ( ArgSettings :: RequireEquals ) { " " } else { " " } ; self . none ( sep ) ? ; } else if let Some ( l ) = arg . long { if arg . short . is_some ( ) { self . none ( " " ) ? ; } self . good ( & format ! ( " " l ) ) ? ; } Ok ( ( ) ) }
Writes argument's long command to the wrapped stream.
Writes argument ' s long command to the wrapped stream .
&mut self
arg
&Arg<'c>
&mut self
arg
&Arg<'c>