diff options
Diffstat (limited to 'src/framework/standard/create_group.rs')
| -rw-r--r-- | src/framework/standard/create_group.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/framework/standard/create_group.rs b/src/framework/standard/create_group.rs index 0439f63..3cd4047 100644 --- a/src/framework/standard/create_group.rs +++ b/src/framework/standard/create_group.rs @@ -206,4 +206,12 @@ impl CreateGroup { self } + + /// Sets a description for the group that will be displayed if only + /// one specific group is requested via help. + pub fn desc(mut self, text: &str) -> Self { + self.0.description = Some(text.to_string()); + + self + } } |