about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-18 20:52:52 +0000
committerJames Booth <boothj5@gmail.com>2016-02-18 20:52:52 +0000
commit639623d625acbffcc39059617a9c31ec30f7de80 (patch)
treef99a4bfd533d83c247d14c82eacb337f3ab8559e /src/command
parenta14b7815ae86bb1d552197d32c215157aaa4dc10 (diff)
downloadprofani-tty-639623d625acbffcc39059617a9c31ec30f7de80.tar.gz
Tidied cons_show_help
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 780778c2..9f9c099d 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1368,11 +1368,11 @@ cmd_help(ProfWin *window, const char *const command, gchar **args)
 
         Command *command = g_hash_table_lookup(commands, cmd_with_slash);
         if (command) {
-            cons_show_help(command);
+            cons_show_help(cmd_with_slash, &command->help);
         } else {
             CommandHelp *commandHelp = plugins_get_help(cmd_with_slash);
             if (commandHelp) {
-                cons_show_plugin_help(cmd_with_slash, commandHelp);
+                cons_show_help(cmd_with_slash, commandHelp);
             } else {
                 cons_show("No such command.");
             }