diff --git a/src/cmd.c b/src/cmd.c index 2516c37f6fa92250df9752cbec79c3755d41f3ad..5e70e6d1dec9fefc9e7a381d377c51310f2dee5b 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -28,7 +28,7 @@ lkt_cmd_parse(struct lkt_cmd_opt *opts, int argc, const char **argv, void (*help if (count > 1) goto not_exclusive; - if (!call[1]) + if (!call[1] || count == 0) goto not_found; struct lkt_cmd_args arguments = {