summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xstdcmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xstdcmap.c b/xstdcmap.c
index 0c4c934..0e73158 100644
--- a/xstdcmap.c
+++ b/xstdcmap.c
@@ -339,16 +339,16 @@ main(int argc, char *argv[])
parse(argc, argv);
+ if (help) {
+ usage(0);
+ }
+
if ((dpy = XOpenDisplay(display_name)) == NULL) {
(void) fprintf(stderr, "%s: cannot open display \"%s\".\n",
program_name, XDisplayName(display_name));
exit(1);
}
- if (help) {
- usage(0);
- }
-
if (all) {
if (verbose)
(void) fprintf(stderr,