summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editres.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/editres.c b/editres.c
index 309aaa9..f565196 100644
--- a/editres.c
+++ b/editres.c
@@ -113,8 +113,14 @@ main(int argc, char **argv)
&argc, argv, fallback_resources,
NULL, ZERO);
- if (argc != 1)
+ if (argc != 1) {
+ fputs("Unknown argument(s):", stderr);
+ for (int n = 1; n < argc; n++) {
+ fprintf(stderr, " %s", argv[n]);
+ }
+ fputs("\n\n", stderr);
Syntax(app_con, argv[0], 1);
+ }
SetApplicationActions(app_con);
XtGetApplicationResources(global_toplevel, (XtPointer) &global_resources,