summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorTim Duesterhus <duesterhus@woltlab.com>2021-10-28 16:36:03 +0200
committerWilly Tarreau <w@1wt.eu>2021-10-28 18:50:07 +0200
commit385338b30ba7bcd18688b82ad6467014d8b46749 (patch)
tree714dba1daac8179357df52017fdb420ee6075931 /admin
parenta0635f8d1030d52b19bbe89cefabb74151af34f2 (diff)
downloadhaproxy-385338b30ba7bcd18688b82ad6467014d8b46749.tar.gz
MINOR: halog: Rename -qry to -query
With the query flag moved into the correct help section, there is enough space for two additional characters.
Diffstat (limited to 'admin')
-rw-r--r--admin/halog/halog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/halog/halog.c b/admin/halog/halog.c
index 76e68cebf..89590cfed 100644
--- a/admin/halog/halog.c
+++ b/admin/halog/halog.c
@@ -148,7 +148,7 @@ void usage(FILE *output, const char *msg)
"Usage: halog [-h|--help] for long help\n"
" halog [-q] [-c] [-m <lines>]\n"
" {-cc|-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto|-uba|-ubt|-ic}\n"
- " [-s <skip>] [-e|-E] [-H] [-rt|-RT <time>] [-ad <delay>] [-ac <count>] [-qry]\n"
+ " [-s <skip>] [-e|-E] [-H] [-rt|-RT <time>] [-ad <delay>] [-ac <count>] [-query]\n"
" [-v] [-Q|-QS] [-tcn|-TCN <termcode>] [ -hs|-HS [min][:[max]] ] [ -time [min][:[max]] ] < log\n"
"\n",
msg ? msg : ""
@@ -183,7 +183,7 @@ void help()
" -m <lines> limit output to the first <lines> lines\n"
" -s <skip_n_fields> skip n fields from the beginning of a line (default %d)\n"
" you can also use -n to start from earlier then field %d\n"
- " -qry preserve the query string for per-URL (-u*) statistics\n"
+ " -query preserve the query string for per-URL (-u*) statistics\n"
"\n"
"Output filters - only one may be used at a time\n"
" -c only report the number of lines that would have been printed\n"
@@ -833,7 +833,7 @@ int main(int argc, char **argv)
filter |= FILT_COUNT_URL_BAVG;
else if (strcmp(argv[0], "-ubt") == 0)
filter |= FILT_COUNT_URL_BTOT;
- else if (strcmp(argv[0], "-qry") == 0)
+ else if (strcmp(argv[0], "-query") == 0)
filter2 |= FILT2_PRESERVE_QUERY;
else if (strcmp(argv[0], "-ic") == 0)
filter |= FILT_COUNT_IP_COUNT;