From: BenoƮt Monin Date: Sat, 25 Apr 2015 11:50:33 +0000 (+0200) Subject: rrdlastupdate: document short option '-d' for daemon X-Git-Tag: v1.5.3~5^2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=772aace4b0a750b620ec21deb496550252496324;p=thirdparty%2Frrdtool-1.x.git rrdlastupdate: document short option '-d' for daemon --- diff --git a/doc/rrdlastupdate.pod b/doc/rrdlastupdate.pod index ecdff8da..bb94a729 100644 --- a/doc/rrdlastupdate.pod +++ b/doc/rrdlastupdate.pod @@ -5,7 +5,7 @@ rrdlastupdate - Return the most recent update to an RRD =head1 SYNOPSIS B B I -S<[B<--daemon> I
]> +S<[B<--daemon>|B<-d> I
]> =head1 DESCRIPTION @@ -18,7 +18,7 @@ value stored for each datum in the most recent update of an RRD. The name of the B that contains the data. -=item B<--daemon> I
+=item B<--daemon>|B<-d> I
Address of the L daemon. If specified, a C command is sent to the server before reading the RRD files. This allows B to return diff --git a/src/rrd_lastupdate.c b/src/rrd_lastupdate.c index b6f1b4bf..a3569c15 100644 --- a/src/rrd_lastupdate.c +++ b/src/rrd_lastupdate.c @@ -49,7 +49,7 @@ int rrd_lastupdate (int argc, char **argv) break; default: - rrd_set_error ("Usage: rrdtool %s [--daemon ] ", + rrd_set_error ("Usage: rrdtool %s [--daemon|-d ] ", argv[0]); return (-1); break; @@ -57,7 +57,7 @@ int rrd_lastupdate (int argc, char **argv) } /* while (42) */ if ((argc - optind) != 1) { - rrd_set_error ("Usage: rrdtool %s [--daemon ] ", + rrd_set_error ("Usage: rrdtool %s [--daemon|-d ] ", argv[0]); return (-1); } diff --git a/src/rrd_tool.c b/src/rrd_tool.c index 8af96841..6a54c0e1 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -93,7 +93,9 @@ void PrintUsage( const char *help_lastupdate = N_("* lastupdate - returns the most recent datum stored for\n" - " each DS in an RRD\n\n" "\trrdtool lastupdate filename.rrd\n"); + " each DS in an RRD\n\n" + "\trrdtool lastupdate filename.rrd\n" + "\t\t[--daemon|-d address]\n"); const char *help_first = N_("* first - show first update time for RRA within an RRD\n\n"