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(); }