From 87e7eafde4022f9f6947a52a0d8dc1f846b7cfd5 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 8 Nov 2021 08:37:40 +0100 Subject: [PATCH] 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. --- admin/halog/halog.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/admin/halog/halog.c b/admin/halog/halog.c index f368c1c6f..c7697dc52 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