diff options
author | Viachaslau Khalikin <viachaslau.vinegret@outlook.com> | 2022-09-19 18:08:54 +0300 |
---|---|---|
committer | Viachaslau Khalikin <viachaslau.vinegret@outlook.com> | 2022-09-19 18:08:54 +0300 |
commit | cc7231a43b45eb6e119df42ee64c195dc12b43a1 (patch) | |
tree | a07d9bac253719251b752840ab38e1ac18b708c5 | |
parent | 6cb6823aed960ddbe7aaefaaeeb0980afb5735f3 (diff) | |
download | profani-tty-cc7231a43b45eb6e119df42ee64c195dc12b43a1.tar.gz |
minor: using cons_bad_cmd_usage() instead of the manual handling
Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
-rw-r--r-- | src/command/cmd_funcs.c | 6 |
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; } |