fn complete<'text>(&self, token: Option<Token<'text>>) -> Completion<'text> {
        match self.kind {
            ParameterKind::Named | ParameterKind::Simple => {
                Completion::new(
                    self.node.help_symbol.clone(),
                    self.node.help_text.clone(),
                    token,
                    true,
                    &[],
                    &[],
                )
            }
            ParameterKind::Flag => {
                Completion::new(
                    self.node.help_symbol.clone(),
                    self.node.help_text.clone(),
                    token,
                    true,
                    &[&self.node.name],
                    &[],
                )
            }
        }
    }
/// By default named and simple parameters complete only to the token
/// being input while flag parameters complete to the name of the flag.
By default named and simple parameters complete only to the token
being input while flag parameters complete to the name of the flag.
By default named and simple parameters complete only to the token being input while flag parameters complete to the name of the flag .
fn complete<'text>(&self, token: Option<Token<'text>>) -> Completion<'text> {
        match self.kind {
            ParameterKind::Named | ParameterKind::Simple => {
                Completion::new(
                    self.node.help_symbol.clone(),
                    self.node.help_text.clone(),
                    token,
                    true,
                    &[],
                    &[],
                )
            }
            ParameterKind::Flag => {
                Completion::new(
                    self.node.help_symbol.clone(),
                    self.node.help_text.clone(),
                    token,
                    true,
                    &[&self.node.name],
                    &[],
                )
            }
        }
    }
fn complete < ' text > ( & self , token : Option < Token < ' text > > ) -> Completion < ' text > { match self . kind { ParameterKind :: Named | ParameterKind :: Simple => { Completion :: new ( self . node . help_symbol . clone ( ) , self . node . help_text . clone ( ) , token , true , & [ ] , & [ ] , ) } ParameterKind :: Flag => { Completion :: new ( self . node . help_symbol . clone ( ) , self . node . help_text . clone ( ) , token , true , & [ & self . node . name ] , & [ ] , ) } } }
By default named and simple parameters complete only to the token
being input while flag parameters complete to the name of the flag.
By default named and simple parameters complete only to the token being input while flag parameters complete to the name of the flag .
&self
token
Option<Token<'text>>
&self
token
Option<Token<'text>>