]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
rrdinfo: fix options documentation
authorBenoît Monin <benoit.monin@gmx.fr>
Sat, 25 Apr 2015 10:02:44 +0000 (12:02 +0200)
committerBenoît Monin <benoit.monin@gmx.fr>
Sat, 25 Apr 2015 20:54:51 +0000 (22:54 +0200)
* Document short option '-d' for daemon.
* Document short option '-F' for noflush.
* Add short-options '-d' and '-F' to error message.
* Add daemon and noflush to rrdtool help.

doc/rrdinfo.pod
src/rrd_info.c
src/rrd_tool.c

index 1752b69366265b9e9111c0811302136c928830a3..0ddde17f51d438168f68e5a71616f190912cfd46 100644 (file)
@@ -5,7 +5,7 @@ rrdinfo - extract header information from an RRD
 =head1 SYNOPSIS
 
 B<rrdtool> B<info> I<filename>
-S<[B<--daemon> I<address>]>
+S<[B<--daemon>|B<-d> I<address> S<[B<--noflush>|B<-F>]>]>
 
 =head1 DESCRIPTION
 
@@ -21,7 +21,7 @@ individual keys.
 
 The name of the B<RRD> you want to examine.
 
-=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
@@ -30,7 +30,7 @@ For a list of accepted formats, see the B<-l> option in the L<rrdcached> manual.
 
  rrdtool info --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
 
-=item B<--noflush> 
+=item B<--noflush>|B<-F>
 
 Omit the C<flush> command usually sent to the daemon prior to retrieving the
 data.  If all you are interested in the the RRD Structure, and not the last update
index 579318bca9215f2587c3032bad2fe40a5edc2565..298132389ce2bb6453d50293140e12f97e910f8d 100644 (file)
@@ -127,7 +127,7 @@ rrd_info_t *rrd_info(
             break;
 
         default:
-            rrd_set_error ("Usage: rrdtool %s [--daemon <addr> [--noflush]] <file>",
+            rrd_set_error ("Usage: rrdtool %s [--daemon|-d <addr> [--noflush|-F]] <file>",
                     argv[0]);
             return (NULL);
             break;
@@ -135,7 +135,7 @@ rrd_info_t *rrd_info(
     }                   /* while (42) */
 
     if ((argc - optind) != 1) {
-        rrd_set_error ("Usage: rrdtool %s [--daemon <addr> [--noflush]] <file>",
+        rrd_set_error ("Usage: rrdtool %s [--daemon |-d <addr> [--noflush|-F]] <file>",
                 argv[0]);
         return (NULL);
     }
index 385e5d81026943f6bbaa2c132b175c21bb6ab1d0..74d57f7d456df1c486cfdcea7ef90b23cf5234be 100644 (file)
@@ -80,7 +80,7 @@ void PrintUsage(
 
     const char *help_info =
         N_("* info - returns the configuration and status of the RRD\n\n"
-           "\trrdtool info filename.rrd\n");
+           "\trrdtool info [--daemon|-d <addr> [--noflush|-F]] filename.rrd\n");
 
     const char *help_restore =
         N_("* restore - restore an RRD file from its XML form\n\n"