summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index 25e7b07..024c11d 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -328,5 +328,8 @@ int main(int argc, char **argv)
argv++;
}
- return applet->main(ctx, argc, argv);
+ r = applet->main(ctx, argc, argv);
+ if (r == -100)
+ return usage(applet);
+ return r;
}