aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/apk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index 229dce52cc..6e5641d59e 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -579,7 +579,11 @@ int main(int argc, char **argv)
}
if (applet == NULL) {
- r = usage(NULL);
+ if (argc > 1) {
+ r = 1;
+ apk_error("'%s' is not an apk command. See 'apk --help'.", argv[1]);
+ } else
+ r = usage(NULL);
goto err;
}