aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gg.12
-rw-r--r--gg.c11
2 files changed, 3 insertions, 10 deletions
diff --git a/gg.1 b/gg.1
index 23ac0bb..0278c51 100644
--- a/gg.1
+++ b/gg.1
@@ -20,7 +20,7 @@
.Sh SYNOPSIS
.Nm
.Bk -words
-.Op Fl 23Nnv
+.Op Fl 23Nn
.Op Fl C Ar cert
.Op Fl d Ar mode
.Op Fl H Ar sni
diff --git a/gg.c b/gg.c
index 8765b11..cd335b4 100644
--- a/gg.c
+++ b/gg.c
@@ -39,7 +39,6 @@ int flag3;
int nop;
int redirects = 5;
int timer;
-int verbose;
const char *cert;
const char *key;
const char *proxy_host;
@@ -231,9 +230,6 @@ get(const char *r)
}
}
- if (verbose)
- printf("%s", req);
-
doreq(ctx, req);
for (;;) {
@@ -304,7 +300,7 @@ close:
static void __attribute__((noreturn))
usage(void)
{
- fprintf(stderr, "usage: %s [-23Nnv] [-C cert] [-d mode] [-H sni] "
+ fprintf(stderr, "usage: %s [-23Nn] [-C cert] [-d mode] [-H sni] "
"[-K key] [-P host[:port]]\n",
getprogname());
fprintf(stderr, " [-T seconds] gemini://...\n");
@@ -352,7 +348,7 @@ main(int argc, char **argv)
int ch, code;
const char *errstr;
- while ((ch = getopt(argc, argv, "23C:d:H:K:NP:T:v")) != -1) {
+ while ((ch = getopt(argc, argv, "23C:d:H:K:NP:T:")) != -1) {
switch (ch) {
case '2':
flag2 = 1;
@@ -390,9 +386,6 @@ main(int argc, char **argv)
signal(SIGALRM, timeout);
alarm(timer);
break;
- case 'v':
- verbose++;
- break;
default:
usage();
}