about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-26 02:05:53 +0100
committerJames Booth <boothj5@gmail.com>2015-07-26 02:05:53 +0100
commit34537e2fb190505a7cf28ac5ca272f831c4b3b2e (patch)
tree7bec43e68e09655b0132257e00d702c44c9c2959 /src/ui/console.c
parent36ebf0fc17f271e79445bfc320bef137bf3582bf (diff)
downloadprofani-tty-34537e2fb190505a7cf28ac5ca272f831c4b3b2e.tar.gz
Removed old command help
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 67c1da58..027f9e73 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -142,6 +142,18 @@ cons_show_help(Command *command)
 }
 
 void
+cons_bad_cmd_usage(const char * const cmd)
+{
+    GString *msg = g_string_new("");
+    g_string_printf(msg, "Invalid usage, see '/help %s' for details.", &cmd[1]);
+
+    cons_show("");
+    cons_show(msg->str);
+
+    g_string_free(msg, TRUE);
+}
+
+void
 cons_show_error(const char * const msg, ...)
 {
     ProfWin *console = wins_get_console();