From: BenoƮt Monin Date: Sat, 25 Apr 2015 10:02:44 +0000 (+0200) Subject: rrdxport: fix options documentation and parsing X-Git-Tag: v1.5.3~5^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a496ec1de3d85956e292238a942bd2375b37385;p=thirdparty%2Frrdtool-1.x.git rrdxport: fix options documentation and parsing * Document short option '-d' for daemon. * Add enumds option to documentation synopsis. * Add daemon to rrdtool help. --- diff --git a/doc/rrdxport.pod b/doc/rrdxport.pod index e08fae9e..1e71a170 100644 --- a/doc/rrdxport.pod +++ b/doc/rrdxport.pod @@ -10,7 +10,8 @@ S<[B<-e>|B<--end> I]> S<[B<-m>|B<--maxrows> I]> S<[B<--step> I]> S<[B<--json>]> -S<[B<--daemon> I
]> +S<[B<--enumds>]> +S<[B<--daemon>|B<-d> I
]> S<[BIB<=>IB<:>IB<:>I]> S<[BIB<=>I]> S<[BB<:>I[B<:>I]]> @@ -50,7 +51,7 @@ for details. See L documentation. -=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_tool.c b/src/rrd_tool.c index 6a2a2207..63df770d 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -228,7 +228,9 @@ void PrintUsage( N_("* xport - generate XML dump from one or several RRD\n\n" "\trrdtool xport [-s|--start seconds] [-e|--end seconds]\n" "\t\t[-m|--maxrows rows]\n" "\t\t[--step seconds]\n" - "\t\t[--enumds] [--json]\n" "\t\t[DEF:vname=rrd:ds-name:CF]\n" + "\t\t[--enumds] [--json]\n" + "\t\t[-d|--daemon address]\n" + "\t\t[DEF:vname=rrd:ds-name:CF]\n" "\t\t[CDEF:vname=rpn-expression]\n" "\t\t[XPORT:vname:legend]\n"); const char *help_quit =