summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--maje.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/maje.c b/maje.c
index b04df7f..9ba22c2 100644
--- a/maje.c
+++ b/maje.c
@@ -24,6 +24,11 @@ int main(int argc, char *argv[])
}
}
+ if (optind < argc - 1) {
+ fprintf(stderr, "maje: extra operands\n");
+ return 1;
+ }
+
srcdir = argv[optind];
if (srcdir == NULL) {