From c5fb072b2b566883b5e045b6e180db233504ae75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 9 Apr 2013 14:20:39 +0200 Subject: [PATCH] Remove -S option RIPE-like `-S' option is not documented nor supported by RIPE. --- whois.1 | 2 +- whois.c | 2 +- whois.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/whois.1 b/whois.1 index 0f88323..4eb089a 100644 --- a/whois.1 +++ b/whois.1 @@ -5,7 +5,7 @@ whois \- client for the whois directory service .B whois [\~{\~\fB\-h\fP | \fB\-\-host\fP\~}\~\fIHOST\fP\~] [\~{\~\fB\-p\fP | \fB\-\-port\fP\~}\~\fIPORT\fP\~] -[\~\fB\-abBcdFGHKlLmMrRSx\fP\~] +[\~\fB\-abBcdFGHKlLmMrRx\fP\~] [\~\fB\-g\fP\~\fISOURCE:FIRST\-LAST\fP\~] [\~\fB\-i\fP\~\fIATTR\fP[\fI,ATTR\fP]...\~] [\~\fB\-s\fP\~\fISOURCE\fP[\fI,SOURCE\fP]...\~] diff --git a/whois.c b/whois.c index 0061727..05bf055 100644 --- a/whois.c +++ b/whois.c @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) argv = merge_args(getenv("WHOIS_OPTIONS"), argv, &argc); while ((ch = GETOPT_LONGISH(argc, argv, - "abBcdFg:Gh:Hi:KlLmMp:q:rRs:St:T:v:V:x", longopts, 0)) > 0) { + "abBcdFg:Gh:Hi:KlLmMp:q:rRs:t:T:v:V:x", longopts, 0)) > 0) { /* RIPE flags */ if (strchr(ripeflags, ch)) { if (strlen(fstring) + 3 > fstringlen) { diff --git a/whois.h b/whois.h index ac753a0..78ce21c 100644 --- a/whois.h +++ b/whois.h @@ -41,6 +41,6 @@ void split_server_port(const char *const input, const char **server, /* flags for RIPE-like servers */ -const char *ripeflags="abBcdFGKlLmMrRSx"; +const char *ripeflags="abBcdFGKlLmMrRx"; const char *ripeflagsp="gisTtvq";