Trait brigadier_rs::ThenHelp
source · pub trait ThenHelp<S> {
fn help(self, description: &'static str) -> HelpArgument<S, Self>
where
Self: Sized,
{ ... }
}
Expand description
Type that can produce a usage list and help command.
This should conventionally only be implemented on literal types (types that
implement CommandArgument<()>
).
Provided Methods
sourcefn help(self, description: &'static str) -> HelpArgument<S, Self>where
Self: Sized,
fn help(self, description: &'static str) -> HelpArgument<S, Self>where
Self: Sized,
Attach this parser to a HelpArgument
and a description, the help
name will be the usage returned by the root parser.