* Document short option '-d' for daemon.
* Fix getopt: remove unused '-F' short option.
* Add short-option '-d' to error message.
* Add daemon to rrdtool help.
=head1 SYNOPSIS
-B<rrdtool> B<first> I<filename> [I<--rraindex number>] [B<--daemon> I<address>]
+B<rrdtool> B<first> I<filename> [B<--rraindex> I<number>] [B<--daemon>|B<-d> I<address>]
=head1 DESCRIPTION
The name of the B<RRD> that contains the data.
-=item I<--rraindex number>
+=item B<--rraindex> I<number>
The index number of the B<RRA> that is to be examined. If not specified, the
index defaults to zero. B<RRA> index numbers can be determined through
B<rrdtool info>.
-=item B<--daemon> I<address>
+=item B<--daemon>|B<-d> I<address>
Address of the L<rrdcached> daemon. For a list of accepted formats, see
the B<-l> option in the L<rrdcached> manual.
int option_index = 0;
int opt;
- opt = getopt_long(argc, argv, "d:F", long_options, &option_index);
+ opt = getopt_long(argc, argv, "d:", long_options, &option_index);
if (opt == EOF)
break;
}
break;
default:
- rrd_set_error("usage rrdtool %s [--rraindex number] [--daemon <addr>] file.rrd",
+ rrd_set_error("usage rrdtool %s [--rraindex number] [--daemon|-d <addr>] file.rrd",
argv[0]);
return (-1);
}
}
if (optind >= argc) {
- rrd_set_error("usage rrdtool %s [--rraindex number] [--daemon <addr>] file.rrd",
+ rrd_set_error("usage rrdtool %s [--rraindex number] [--daemon|-d <addr>] file.rrd",
argv[0]);
return -1;
}
const char *help_first =
N_("* first - show first update time for RRA within an RRD\n\n"
- "\trrdtool first filename.rrd [--rraindex number]\n");
+ "\trrdtool first filename.rrd [--rraindex number] [--daemon|-d address]\n");
const char *help_update =
N_("* update - update an RRD\n\n"