fn write_subcommands(&mut self, app: &App<'b>) -> io::Result<()> {
        debug!("Help::write_subcommands");
        // The shortest an arg can legally be is 2 (i.e. '-x')
        self.longest = 2;
        let mut ord_m = VecMap::new();
        for sc in app
            .subcommands
            .iter()
            .filter(|s| !s.is_set(AppSettings::Hidden))
        {
            let btm = ord_m.entry(sc.disp_ord).or_insert(BTreeMap::new());
            self.longest = cmp::max(self.longest, str_width(sc.name.as_str()));
            btm.insert(sc.name.clone(), sc.clone());
        }

        let mut first = true;
        for btm in ord_m.values() {
            for sc in btm.values() {
                if first {
                    first = false;
                } else {
                    self.none("\n")?;
                }
                self.write_subcommand(sc)?;
            }
        }
        Ok(())
    }
/// Writes help for subcommands of a Parser Object to the wrapped stream.
Writes help for subcommands of a Parser Object to the wrapped stream.
Writes help for subcommands of a Parser Object to the wrapped stream .
fn write_subcommands(&mut self, app: &App<'b>) -> io::Result<()> {
        debug!("Help::write_subcommands");
        // The shortest an arg can legally be is 2 (i.e. '-x')
        self.longest = 2;
        let mut ord_m = VecMap::new();
        for sc in app
            .subcommands
            .iter()
            .filter(|s| !s.is_set(AppSettings::Hidden))
        {
            let btm = ord_m.entry(sc.disp_ord).or_insert(BTreeMap::new());
            self.longest = cmp::max(self.longest, str_width(sc.name.as_str()));
            btm.insert(sc.name.clone(), sc.clone());
        }
        let mut first = true;
        for btm in ord_m.values() {
            for sc in btm.values() {
                if first {
                    first = false;
                } else {
                    self.none("\n")?;
                }
                self.write_subcommand(sc)?;
            }
        }
        Ok(())
    }
fn write_subcommands ( & mut self , app : & App < ' b > ) -> io :: Result < ( ) > { debug ! ( " " ) ; // The shortest an arg can legally be is 2 (i.e. '-x') self . longest = 2 ; let mut ord_m = VecMap :: new ( ) ; for sc in app . subcommands . iter ( ) . filter ( | s | ! s . is_set ( AppSettings :: Hidden ) ) { let btm = ord_m . entry ( sc . disp_ord ) . or_insert ( BTreeMap :: new ( ) ) ; self . longest = cmp :: max ( self . longest , str_width ( sc . name . as_str ( ) ) ) ; btm . insert ( sc . name . clone ( ) , sc . clone ( ) ) ; } let mut first = true ; for btm in ord_m . values ( ) { for sc in btm . values ( ) { if first { first = false ; } else { self . none ( " \n " ) ? ; } self . write_subcommand ( sc ) ? ; } } Ok ( ( ) ) }
Writes help for subcommands of a Parser Object to the wrapped stream.
Writes help for subcommands of a Parser Object to the wrapped stream .
&mut self
app
&App<'b>
&mut self
app
&App<'b>