From cc7231a43b45eb6e119df42ee64c195dc12b43a1 Mon Sep 17 00:00:00 2001 From: Viachaslau Khalikin Date: Mon, 19 Sep 2022 18:08:54 +0300 Subject: [PATCH] minor: using cons_bad_cmd_usage() instead of the manual handling Signed-off-by: Viachaslau Khalikin --- src/command/cmd_funcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index e8a10a8d..16d4d4c0 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -6984,7 +6984,7 @@ cmd_plugins_install(ProfWin* window, const char* const command, gchar** args) char* path = NULL; if (args[1] == NULL) { - cons_show("Please provide a path to the plugin file or directory, see /help plugins"); + cons_bad_cmd_usage(command); return TRUE; } @@ -7068,7 +7068,7 @@ cmd_plugins_update(ProfWin* window, const char* const command, gchar** args) char* path; if (args[1] == NULL) { - cons_show("Please provide a path to the plugin file, see /help plugins"); + cons_bad_cmd_usage(command); return TRUE; } else { path = get_expanded_path(args[1]); @@ -7117,7 +7117,7 @@ gboolean cmd_plugins_uninstall(ProfWin* window, const char* const command, gchar** args) { if (args[1] == NULL) { - cons_show("Please specify plugin name, see /help plugins"); + cons_bad_cmd_usage(command); return TRUE; }