diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-02-11 11:17:41 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-02-11 11:17:41 -0800 |
commit | e7c9e106e65767598b786804dc7324adc50d7efc (patch) | |
tree | 077587ecfb2a6bb6f04db286073ffd9a3cb9f872 | |
parent | 37ee1293a35cd2f86463e2954f44db58692aa053 (diff) |
Print which arguments were unknown before giving usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xfontsel.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -319,7 +319,14 @@ main(int argc, char **argv) } #endif - if (argc != 1) Syntax(argv[0]); + if (argc != 1) { + fputs(gettext("Unknown argument(s):"), stderr); + for (int n = 1; n < argc; n++) { + fprintf(stderr, " %s", argv[n]); + } + fputs("\n\n", stderr); + Syntax(argv[0]); + } XtAppAddActions(appCtx, xfontsel_actions, XtNumber(xfontsel_actions)); XtOverrideTranslations |