summaryrefslogtreecommitdiff
path: root/xfontsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'xfontsel.c')
-rw-r--r--xfontsel.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/xfontsel.c b/xfontsel.c
index c4d16f7..653d532 100644
--- a/xfontsel.c
+++ b/xfontsel.c
@@ -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