summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Christoph Nordholz <hesso@pool.math.tu-berlin.de>2014-04-25 14:01:52 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2014-04-25 14:01:52 +0200
commitce1161bb5366889199b818ed9831951105b98b73 (patch)
tree4885f0b2ec53174c0bd5ce664ab180d644c1c147
parentd07546e23fcbb24250660d416863025a00c2f5bc (diff)
downloadscreen-ce1161bb5366889199b818ed9831951105b98b73.tar.gz
This is not getopt() and we don't have two leading dashes, so parse and match the long options in full.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r--src/screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 7202818..e63690d 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -655,6 +655,8 @@ char **av;
}
break;
case 'w':
+ if (strcmp(ap+1, "ipe"))
+ exit_with_usage(myname, "Unknown option %s", --ap);
lsflag = 1;
wipeflag = 1;
if (ac > 1 && !SockMatch)