[rrd-developers] [PATCH] rrdfetch: Print a usage summary if not enough parameters have been given.
Sebastian Harl
sh at tokkee.org
Sat Oct 3 23:20:27 CEST 2009
---
program/src/rrd_fetch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/src/rrd_fetch.c b/program/src/rrd_fetch.c
index 2c30a98..b60ea15 100644
--- a/program/src/rrd_fetch.c
+++ b/program/src/rrd_fetch.c
@@ -163,7 +163,7 @@ int rrd_fetch(
*step = step_tmp;
if (optind + 1 >= argc) {
- rrd_set_error("not enough arguments");
+ rrd_set_error("Usage: rrdtool %s <file> <CF> [options]", argv[0]);
return -1;
}
--
1.6.5.rc2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20091003/e0619d26/attachment.pgp
More information about the rrd-developers
mailing list