diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-24 04:55:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-24 04:55:57 +0200 |
commit | 2f02ce4005075ac76742ed6a2189cc2e5fc6a192 (patch) | |
tree | 4914f66cfadda43b628cde730ddd6a836cff4d25 /src/install.c | |
parent | 6f6083dc73c4bdd48678456fa6b969d6f1152373 (diff) |
utils: show help blurb when run without any arguments
Diffstat (limited to 'src/install.c')
-rw-r--r-- | src/install.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c index 0c9f086663..f56c0728b9 100644 --- a/src/install.c +++ b/src/install.c @@ -132,7 +132,7 @@ static int parse_argv(int argc, char *argv[]) { } if (optind >= argc) { - log_error("Missing verb."); + help(); return -EINVAL; } @@ -143,7 +143,7 @@ static int parse_argv(int argc, char *argv[]) { else if (streq(argv[optind], "test")) arg_action = ACTION_TEST; else { - log_error("Unknown verb %s", argv[optind]); + log_error("Unknown verb %s.", argv[optind]); return -EINVAL; } |