]> git.pond.sub.org Git - empserver/blobdiff - src/util/empsched.c
Make empire, empsched and files catch extra operands
[empserver] / src / util / empsched.c
index 6fd252db76bc6a46b82664471c6acce3da0505c7..185959686387facf4580b0d978e8c3e47fabc953 100644 (file)
@@ -92,6 +92,12 @@ main(int argc, char *argv[])
        }
     }
 
        }
     }
 
+    if (argc - optind > 1) {
+       fprintf(stderr, "%s: extra operand %s\n", argv[0], argv[optind+1]);
+       fprintf(stderr, "Try -h for help.\n");
+       exit(1);
+    }
+
     if (emp_config(config_file) < 0)
        exit(1);
 
     if (emp_config(config_file) < 0)
        exit(1);