mirror of https://github.com/omar-polo/gmid.git
s/whole/all
This commit is contained in:
parent
e0f6dc646d
commit
e89f473904
2
gg.1
2
gg.1
|
@ -58,7 +58,7 @@ print only the response code
|
||||||
print only the response header
|
print only the response header
|
||||||
.It meta
|
.It meta
|
||||||
print only the response meta
|
print only the response meta
|
||||||
.It whole
|
.It all
|
||||||
print the whole response as-is.
|
print the whole response as-is.
|
||||||
.El
|
.El
|
||||||
.It Fl H Ar sni
|
.It Fl H Ar sni
|
||||||
|
|
8
gg.c
8
gg.c
|
@ -28,7 +28,7 @@ enum debug {
|
||||||
DEBUG_CODE,
|
DEBUG_CODE,
|
||||||
DEBUG_HEADER,
|
DEBUG_HEADER,
|
||||||
DEBUG_META,
|
DEBUG_META,
|
||||||
DEBUG_WHOLE,
|
DEBUG_ALL,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
|
@ -278,7 +278,7 @@ get(const char *r)
|
||||||
goto close;
|
goto close;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug == DEBUG_WHOLE) {
|
if (debug == DEBUG_ALL) {
|
||||||
write(1, buf, len);
|
write(1, buf, len);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -322,8 +322,8 @@ parse_debug(const char *arg)
|
||||||
return DEBUG_HEADER;
|
return DEBUG_HEADER;
|
||||||
if (!strcmp(arg, "meta"))
|
if (!strcmp(arg, "meta"))
|
||||||
return DEBUG_META;
|
return DEBUG_META;
|
||||||
if (!strcmp(arg, "whole"))
|
if (!strcmp(arg, "all"))
|
||||||
return DEBUG_WHOLE;
|
return DEBUG_ALL;
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue