aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-27 10:37:28 +0000
committerOmar Polo <op@omarpolo.com>2022-01-27 10:37:28 +0000
commite89f4739041b12a3984107704ad97bcf5f0aec26 (patch)
tree62972fd38960537ff3842878cc9c29fb4b081b80
parente0f6dc646d6c257869c17f16db977cd064262830 (diff)
s/whole/all
-rw-r--r--gg.12
-rw-r--r--gg.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/gg.1 b/gg.1
index a8969c8..6dd3f31 100644
--- a/gg.1
+++ b/gg.1
@@ -58,7 +58,7 @@ print only the response code
print only the response header
.It meta
print only the response meta
-.It whole
+.It all
print the whole response as-is.
.El
.It Fl H Ar sni
diff --git a/gg.c b/gg.c
index b70fd63..8765b11 100644
--- a/gg.c
+++ b/gg.c
@@ -28,7 +28,7 @@ enum debug {
DEBUG_CODE,
DEBUG_HEADER,
DEBUG_META,
- DEBUG_WHOLE,
+ DEBUG_ALL,
};
/* flags */
@@ -278,7 +278,7 @@ get(const char *r)
goto close;
}
- if (debug == DEBUG_WHOLE) {
+ if (debug == DEBUG_ALL) {
write(1, buf, len);
continue;
}
@@ -322,8 +322,8 @@ parse_debug(const char *arg)
return DEBUG_HEADER;
if (!strcmp(arg, "meta"))
return DEBUG_META;
- if (!strcmp(arg, "whole"))
- return DEBUG_WHOLE;
+ if (!strcmp(arg, "all"))
+ return DEBUG_ALL;
usage();
}