diff --git a/qpkg/qpkg.c b/qpkg/qpkg.c index 76ec13e..2b6120f 100644 --- a/qpkg/qpkg.c +++ b/qpkg/qpkg.c @@ -111,9 +111,13 @@ int main(int argc, char **argv) { int arg; + if (argc == 1) + usage(*argv); packages = make_tree(comp_id); versions = make_tree(comp_id); for (arg = 1; arg != argc; arg++) { + if (*argv[arg] == '-') + usage(*argv); if (!strcmp(argv[arg], "list")) { switch (argc-arg) { case 1: