]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
rrdflushcached: 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:51 +0000 (22:54 +0200)
doc/rrdflushcached.pod
src/rrd_flushcached.c
src/rrd_tool.c

index e068bc66ad3c659baf673531de08cd61dbe2dfab..9cb02dbe05e352145f6429c230d7270dd24c68b2 100644 (file)
@@ -5,7 +5,7 @@ rrdflushcached - Flush the values for a spcific RRD file from memory.
 =head1 SYNOPSIS
 
 B<rrdtool> B<flushcached>
-S<[B<--daemon> I<address>]>
+S<[B<--daemon>|B<-d> I<address>]>
 I<filename> [I<filename> ...]
 
 =head1 DESCRIPTION
@@ -22,7 +22,7 @@ written to disk.
 
 The name(s) of the B<RRD> file(s) that are to be written to disk.
 
-=item B<--daemon> I<address>
+=item B<--daemon>|B<-d> I<address>
 
 Address of the L<rrdcached> daemon. If not specified, the
 RRDCACHED_ADDRESS environment variable must be set (see below).  For a
index 55d4e28a942ae2f93e61a470241494e9f8925d62..a0293398357ae37d168f046daa6bf7927626bb4c 100644 (file)
@@ -60,7 +60,7 @@ int rrd_flushcached (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);
         }
@@ -68,7 +68,7 @@ int rrd_flushcached (int argc, char **argv)
 
     if ((argc - optind) < 1)
     {
-        rrd_set_error ("Usage: rrdtool %s [--daemon <addr>] <file> [<file> ...]", argv[0]);
+        rrd_set_error ("Usage: rrdtool %s [--daemon|-d <addr>] <file> [<file> ...]", argv[0]);
         return (-1);
     }
 
index 16bf44d0fd91bf12501e8ee882a091110dd9154f..eb99a33f4c8e7d8c5b6e02b8941170f004a12083 100644 (file)
@@ -129,7 +129,7 @@ void PrintUsage(
     const char *help_flushcached =
         N_("* flushcached - flush cached data out to an RRD file\n\n"
            "\trrdtool flushcached filename.rrd\n"
-          "\t\t[--daemon <address>]\n");
+          "\t\t[-d|--daemon <address>]\n");
 
 /* break up very large strings (help_graph, help_tune) for ISO C89 compliance*/