From: Willy Tarreau Date: Mon, 23 Jan 2012 07:15:51 +0000 (+0100) Subject: MINOR: halog: add some help on the command line X-Git-Tag: v1.5-dev8~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=615674cdec067066a42f53f5d55628ab7b207e6c;p=thirdparty%2Fhaproxy.git MINOR: halog: add some help on the command line --- diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 40852aec0c..250623d827 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -123,19 +123,58 @@ void filter_graphs(const char *accept_field, const char *time_field, struct time void filter_output_line(const char *accept_field, const char *time_field, struct timer **tptr); void filter_accept_holes(const char *accept_field, const char *time_field, struct timer **tptr); -void die(const char *msg) +void usage(FILE *output, const char *msg) { - fprintf(stderr, + fprintf(output, "%s" - "Usage: halog [-q] [-c] [-v] {-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto}\n" + "Usage: halog [-h|--help] for long help\n" + " halog [-q] [-c] [-v] {-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto}\n" " [-s ] [-e|-E] [-H] [-rt|-RT