diff options
Diffstat (limited to 'listres.c')
-rw-r--r-- | listres.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -262,13 +262,18 @@ main (int argc, char **argv) (Bool) options.show_superclass, (Bool) options.show_variable); } - } else + } else { + fprintf(stderr, "Unknown argument: %s\n", argv[0]); usage(); + } } else { for (; argc > 0; argc--, argv++) { XmuWidgetNode *node; - if (argv[0][0] == '-') usage (); + if (argv[0][0] == '-') { + fprintf(stderr, "Unknown argument: %s\n", argv[0]); + usage(); + } node = XmuWnNameToNode (widget_list, nwidgets, *argv); if (!node) { fprintf (stderr, "%s: unable to find widget \"%s\"\n", |