]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
rrdlastupdate: document short option '-d' for daemon
authorBenoît Monin <benoit.monin@gmx.fr>
Sat, 25 Apr 2015 11:50:33 +0000 (13:50 +0200)
committerBenoît Monin <benoit.monin@gmx.fr>
Sat, 25 Apr 2015 20:54:52 +0000 (22:54 +0200)
doc/rrdlastupdate.pod
src/rrd_lastupdate.c
src/rrd_tool.c

index ecdff8da9ade95d5ff7bbcfec55301215a6a350b..bb94a729af10a0ce6308c6d5f2ed59334023f623 100644 (file)
@@ -5,7 +5,7 @@ rrdlastupdate - Return the most recent update to an RRD
 =head1 SYNOPSIS
 
 B<rrdtool> B<lastupdate> I<filename>
-S<[B<--daemon> I<address>]>
+S<[B<--daemon>|B<-d> I<address>]>
 
 =head1 DESCRIPTION
 
@@ -18,7 +18,7 @@ value stored for each datum in the most recent update of an RRD.
 
 The name of the B<RRD> that contains the data.
 
-=item B<--daemon> I<address>
+=item B<--daemon>|B<-d> I<address>
 
 Address of the L<rrdcached> daemon. If specified, a C<flush> command is sent
 to the server before reading the RRD files. This allows B<rrdtool> to return
index b6f1b4bf80d3b49b77ea5300210681464e0c426e..a3569c1529620250ec6594b1d50837118f40fbf7 100644 (file)
@@ -49,7 +49,7 @@ int rrd_lastupdate (int argc, char **argv)
             break;
 
         default:
-            rrd_set_error ("Usage: rrdtool %s [--daemon <addr>] <file>",
+            rrd_set_error ("Usage: rrdtool %s [--daemon|-d <addr>] <file>",
                     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 <addr>] <file>",
+        rrd_set_error ("Usage: rrdtool %s [--daemon|-d <addr>] <file>",
                 argv[0]);
         return (-1);
     }
index 8af96841bc04eccd19753f22521c75521085a667..6a54c0e11adad0b53349e021537d0fbc83885af6 100644 (file)
@@ -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"