From: Willy Tarreau Date: Mon, 8 Nov 2021 07:37:40 +0000 (+0100) Subject: CLEANUP: halog: make the default usage message fit in small screens X-Git-Tag: v2.5-dev14~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87e7eafde4022f9f6947a52a0d8dc1f846b7cfd5;p=thirdparty%2Fhaproxy.git CLEANUP: halog: make the default usage message fit in small screens The usage message was starting to have long lines, it's preferable that it still fits well into a default 80-col display so that options are easy to find. Also cut that into the 3 parts (input filter, modifier, output format) for improved legibility. --- diff --git a/admin/halog/halog.c b/admin/halog/halog.c index f368c1c6f4..c7697dc524 100644 --- a/admin/halog/halog.c +++ b/admin/halog/halog.c @@ -147,13 +147,14 @@ void usage(FILE *output, const char *msg) { fprintf(output, "%s" - "Usage: halog [-h|--help] for long help\n" - " halog [-q] [-c] [-m ]\n" - " {-cc|-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto|-uba|-ubt|-ic\n" - " |-hdr :\n" - " }\n" - " [-s ] [-e|-E] [-H] [-rt|-RT