diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-02-06 18:20:20 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-02-06 18:30:30 -0800 |
commit | 85a3ccd43c4601c9d80bea8441ec9711af9bd52d (patch) | |
tree | 2b4ab0c13e321c00f515847c6d38d1daa088d9c0 /editres.c | |
parent | ad1da487b343ffdbeda09563984869cc56ab29a0 (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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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, |