diff options
| author | Yarsan Hoessain <[email protected]> | 2018-09-29 16:24:43 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-11-15 19:41:47 +0100 |
| commit | 576ec26ef2ea1d11d4056bf6d0ea8d08faf3c02e (patch) | |
| tree | 42883f00898e4fcf29c8887fc5d44d4ac193b2c0 | |
| parent | Fix imports in `create_channel`'s example (diff) | |
| download | serenity-576ec26ef2ea1d11d4056bf6d0ea8d08faf3c02e.tar.xz serenity-576ec26ef2ea1d11d4056bf6d0ea8d08faf3c02e.zip | |
Underline command name and "Commands" in plain help
| -rw-r--r-- | src/framework/standard/help_commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs index 59e2268..d84e375 100644 --- a/src/framework/standard/help_commands.rs +++ b/src/framework/standard/help_commands.rs @@ -795,7 +795,7 @@ fn grouped_commands_to_plain_string( help_description: &str, groups: &[GroupCommandsPair]) -> String { - let mut result = "**Commands**\n".to_string(); + let mut result = "__**Commands**__\n".to_string(); let _ = writeln!(result, "{}", &help_description); for group in groups { @@ -814,7 +814,7 @@ fn grouped_commands_to_plain_string( /// Turns a single command into a `String` taking plain help format into account. fn single_command_to_plain_string(help_options: &HelpOptions, command: &Command) -> String { let mut result = String::default(); - let _ = writeln!(result, "**{}**", command.name); + let _ = writeln!(result, "__**{}**__", command.name); if !command.aliases.is_empty() { let _ = writeln!(result, "**{}**: `{}`", help_options.aliases_label, command.aliases.join("`, `")); |