aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xdeadzone.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xdeadzone.c b/xdeadzone.c
index 376794f..35fece6 100644
--- a/xdeadzone.c
+++ b/xdeadzone.c
@@ -54,7 +54,7 @@ void usage(const int ret) {
}
void errmsg(const char *msg) {
- fprintf(stderr, "%s: %s\n", exe_name, msg);
+ fprintf(stderr, "%s: %s\n\n", exe_name, msg);
usage(1);
}
@@ -125,18 +125,18 @@ int main(int argc, char **argv) {
check_mode(mode);
mode = M_SW;
} else if(a[0] == '-') {
- fprintf(stderr, "%s: invalid option: %s (try --help)\n", exe_name, a);
- exit(1);
+ fprintf(stderr, "%s: invalid option: %s\n\n", exe_name, a);
+ usage(1);
} else { /* no dash, must be geometry */
if(gflags == -1)
gflags = XParseGeometry(a, &x, &y, &width, &height);
else
- errmsg("multiple geometry arguments given (try --help)");
+ errmsg("multiple geometry arguments given");
}
}
if(gflags == -1)
- errmsg("missing required geometry argument (try --help)");
+ errmsg("missing required geometry argument");
else
DBG(printf("XParseGeometry got %d %d %d %d\n", x, y, width, height));