From: Lucas De Marchi Date: Fri, 23 Dec 2011 13:35:48 +0000 (-0200) Subject: tools: kmod: print help message when no commands given X-Git-Tag: v3~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a458e36738ec7d04524ae44e28d0a7ca279d206d;p=thirdparty%2Fkmod.git tools: kmod: print help message when no commands given --- diff --git a/tools/kmod.c b/tools/kmod.c index b6b589a7..0aec4c36 100644 --- a/tools/kmod.c +++ b/tools/kmod.c @@ -51,7 +51,7 @@ static int kmod_help(int argc, char *argv[]) { size_t i; - printf("Manage kernel modules: list, load, unload, etc\n" + printf("kmod - Manage kernel modules: list, load, unload, etc\n" "Usage:\n" "\t%s [options] command [command_options]\n\n" "Options:\n" @@ -128,8 +128,8 @@ static int handle_kmod_commands(int argc, char *argv[]) finish: if (err < 0) { - fputs("missing or unknown command; " - "see 'kmod help' for a list of available commands\n", stderr); + fputs("missing or unknown command\n", stderr); + kmod_help(argc, argv); } return err;