Skip to content
Snippets Groups Projects
Commit b979e388 authored by Phil Schwan's avatar Phil Schwan
Browse files

statmany error if one of "-els" isn't given

parent fb92b63f
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,11 @@ int main(int argc, char ** argv) ...@@ -88,6 +88,11 @@ int main(int argc, char ** argv)
} }
} }
if (mode == 0) {
fprintf(stderr, "one of '-l', '-e', or '-s' must be supplied.\n");
usage(prog, stderr);
}
if (optind + 2 + (length == LONG_MAX) != argc) { if (optind + 2 + (length == LONG_MAX) != argc) {
fprintf(stderr, "missing filenamebase, total_files, or iterations\n"); fprintf(stderr, "missing filenamebase, total_files, or iterations\n");
usage(prog, stderr); usage(prog, stderr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment