summaryrefslogtreecommitdiff
path: root/xmessage.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmessage.c')
-rw-r--r--xmessage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmessage.c b/xmessage.c
index 6f31007..a1082e6 100644
--- a/xmessage.c
+++ b/xmessage.c
@@ -349,6 +349,11 @@ main (int argc, char *argv[])
}
message_len = len;
} else {
+ fputs("Unknown argument(s):", stderr);
+ for (int n = 1; n < argc; n++) {
+ fprintf(stderr, " %s", argv[n]);
+ }
+ fputs("\n\n", stderr);
usage(stderr);
exit(1);
}