about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorViachaslau Khalikin <viachaslau.vinegret@outlook.com>2022-09-19 18:08:54 +0300
committerViachaslau Khalikin <viachaslau.vinegret@outlook.com>2022-09-19 18:08:54 +0300
commitcc7231a43b45eb6e119df42ee64c195dc12b43a1 (patch)
treea07d9bac253719251b752840ab38e1ac18b708c5 /src/command
parent6cb6823aed960ddbe7aaefaaeeb0980afb5735f3 (diff)
downloadprofani-tty-cc7231a43b45eb6e119df42ee64c195dc12b43a1.tar.gz
minor: using cons_bad_cmd_usage() instead of the manual handling
Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c6
1 files 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;
     }