--- a/src/main.c +++ b/src/main.c @@ -201,6 +201,7 @@ #ifdef DEBUG fprintf(stdout, "DEBUG: parse_inject\n"); #endif + if (!opts) print_usage(); while((opt = getopt(argc, argv, opts)) != -1) {