fn write_bin_name(&mut self) -> io::Result<()> {
        debug!("Help::write_bin_name");
        let term_w = self.term_w;
        macro_rules! write_name {
            () => {{
                self.good(&*wrap_help(&self.parser.app.name, term_w))?;
            }};
        }
        if let Some(bn) = self.parser.app.bin_name.as_ref() {
            if bn.contains(' ') {
                // Incase we're dealing with subcommands i.e. git mv is translated to git-mv
                self.good(&bn.replace(" ", "-"))?
            } else {
                write_name!();
            }
        } else {
            write_name!();
        }
        Ok(())
    }
/// Writes binary name of a Parser Object to the wrapped stream.
Writes binary name of a Parser Object to the wrapped stream.
Writes binary name of a Parser Object to the wrapped stream .
fn write_bin_name(&mut self) -> io::Result<()> {
        debug!("Help::write_bin_name");
        let term_w = self.term_w;
        macro_rules! write_name {
            () => {{
                self.good(&*wrap_help(&self.parser.app.name, term_w))?;
            }};
        }
        if let Some(bn) = self.parser.app.bin_name.as_ref() {
            if bn.contains(' ') {
                // Incase we're dealing with subcommands i.e. git mv is translated to git-mv
                self.good(&bn.replace(" ", "-"))?
            } else {
                write_name!();
            }
        } else {
            write_name!();
        }
        Ok(())
    }
fn write_bin_name ( & mut self ) -> io :: Result < ( ) > { debug ! ( " " ) ; let term_w = self . term_w ; macro_rules! write_name { ( ) => { { self good ( wrap_help ( self parser app name term_w ) ) } } ; } if let Some ( bn ) = self . parser . app . bin_name . as_ref ( ) { if bn . contains ( ' ' ) { // Incase we're dealing with subcommands i.e. git mv is translated to git-mv self . good ( & bn . replace ( " " , " " ) ) ? } else { write_name ! ( ) ; } } else { write_name ! ( ) ; } Ok ( ( ) ) }
Writes binary name of a Parser Object to the wrapped stream.
Writes binary name of a Parser Object to the wrapped stream .
&mut self
&mut self