From 75f6516fceb6d8e124f91ae25a10f74f183337ad Mon Sep 17 00:00:00 2001 From: Lakelezz <12222135+Lakelezz@users.noreply.github.com> Date: Tue, 11 Sep 2018 17:37:44 +0200 Subject: Add single group help (#385) --- examples/05_command_framework/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/05_command_framework/src') diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs index 647ea56..1f442c3 100644 --- a/examples/05_command_framework/src/main.rs +++ b/examples/05_command_framework/src/main.rs @@ -177,6 +177,9 @@ fn main() { // This requires us to call commands in this group // via `~emoji` (or `~e`) instead of just `~`. .prefixes(vec!["emoji", "em"]) + // Set a description to appear if a user wants to display a single group + // e.g. via help using the group-name or one of its prefixes. + .desc("A group with commands providing an emoji as response.") // Sets a command that will be executed if only a group-prefix was passed. .default_cmd(bird) .command("cat", |c| c -- cgit v1.2.3