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