* Document short options '-n' for no-header and '-d' for daemon.
* Add command line options to error message.
* Add command line options to rrdtool help.
B<rrdtool> B<dump> I<filename.rrd> [I<filename.xml>]
S<[B<--header>|B<-h> {none,xsd,dtd}]>
-S<[B<--no-header>]>
-S<[B<--daemon> I<address>]>
+S<[B<--no-header>|B<-n>]>
+S<[B<--daemon>|B<-d> I<address>]>
S<[E<gt> I<filename.xml>]>
=head1 DESCRIPTION
you can customize this to and xsd header or no header at all.
-=item B<--no-header>
+=item B<--no-header>|B<-n>
A shortcut for S<--header=none>.
If you want to restore the dump with RRDtool 1.2 you should use the
S<--no-header> option since 1.2 can not deal with xml headers.
-=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
break;
default:
- rrd_set_error("usage rrdtool %s [--header|-h {none,xsd,dtd}] [--no-header]"
+ rrd_set_error("usage rrdtool %s [--header|-h {none,xsd,dtd}]\n"
+ "[--no-header|-n]\n"
+ "[--daemon|-d address]\n"
"file.rrd [file.xml]", argv[0]);
return (-1);
break;
} /* while (42) */
if ((argc - optind) < 1 || (argc - optind) > 2) {
- rrd_set_error("usage rrdtool %s [--header|-h {none,xsd,dtd}] [--no-header]"
- "file.rrd [file.xml]", argv[0]);
+ rrd_set_error("usage rrdtool %s [--header|-h {none,xsd,dtd}]\n"
+ "[--no-header|-n]\n"
+ "[--daemon|-d address]\n"
+ "file.rrd [file.xml]", argv[0]);
return (-1);
}
const char *help_dump =
N_("* dump - dump an RRD to XML\n\n"
- "\trrdtool dump filename.rrd >filename.xml\n");
+ "\trrdtool dump [--header|-h {none,xsd,dtd}]\n"
+ "\t\t[--no-header|-n]\n"
+ "\t\t[--daemon|-d address]\n"
+ "\t\tfile.rrd [file.xml]");
const char *help_info =
N_("* info - returns the configuration and status of the RRD\n\n"