summaryrefslogtreecommitdiff
path: root/editres.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-06 18:20:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-06 18:30:30 -0800
commit85a3ccd43c4601c9d80bea8441ec9711af9bd52d (patch)
tree2b4ab0c13e321c00f515847c6d38d1daa088d9c0 /editres.c
parentad1da487b343ffdbeda09563984869cc56ab29a0 (diff)
List which options were unrecognized before printing usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'editres.c')
-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,