Commit Diff
Diff:
e59b7f30e700d6480728b306da8fc8337e7d9503
21cf735f37d3b5792112e02b58735d69ce18998b
Commit:
21cf735f37d3b5792112e02b58735d69ce18998b
Tree:
97e3bd3f227877844860084325d4c089c0376e38
Author:
Omar Polo <op@omarpolo.com>
Date:
Sun Oct 30 08:26:22 2022 UTC
Message:
remove -v from gg

undocumented flag to dump to stdout the request before doing it. Not
useful, it's debugging leftover.
commit - e59b7f30e700d6480728b306da8fc8337e7d9503
commit + 21cf735f37d3b5792112e02b58735d69ce18998b
blob - 23ac0bbb3ff7829a3b17e25cb5b33657eef07220
blob + 0278c51882d4b2ac75f43cd85b61ae5c0348cec3
--- gg.1
+++ 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
blob - da76e1d04b3453d7190bfc80c48757a5209dc044
blob + 35ccc2985f9b640d88daecd5040fe382ff070fe9
--- gg.c
+++ gg.c
@@ -39,7 +39,6 @@ int verbose;
int nop;
int redirects = 5;
int timer;
-int verbose;
const char *cert;
const char *key;
const char *proxy_host;
@@ -230,9 +229,6 @@ get(const char *r)
errx(1, "handshake: %s", tls_error(ctx));
}
}
-
- if (verbose)
- printf("%s", req);
doreq(ctx, req);
@@ -305,7 +301,7 @@ usage(void)
usage(void)
{
fprintf(stderr, "version: " GG_STRING "\n");
- 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");
@@ -353,7 +349,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;
@@ -391,9 +387,6 @@ main(int argc, char **argv)
signal(SIGALRM, timeout);
alarm(timer);
break;
- case 'v':
- verbose++;
- break;
default:
usage();
}
Omar Polo