diff options
-rw-r--r-- | oclock.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -110,7 +110,14 @@ main(int argc, char *argv[]) toplevel = XtOpenApplication(&xtcontext, "Clock", options, XtNumber(options), &argc, argv, NULL, sessionShellWidgetClass, NULL, 0); - if (argc != 1) usage(); + if (argc != 1) { + fputs("Unknown argument(s):", stderr); + for (int n = 1; n < argc; n++) { + fprintf(stderr, " %s", argv[n]); + } + fputs("\n\n", stderr); + usage(); + } XtAddCallback(toplevel, XtNsaveCallback, save, NULL); XtAddCallback(toplevel, XtNdieCallback, die, NULL); |