[PATCH] rrdfetch: Print a usage summary if not enough parameters have been given.

2 messages Options
Embed this post
Permalink
Sebastian Harl

[PATCH] rrdfetch: Print a usage summary if not enough parameters have been given.

Reply Threaded More More options
Print post
Permalink
---
 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



_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (204 bytes) Download Attachment
oetiker

Re: [PATCH] rrdfetch: Print a usage summary if not enough parameters have been given.

Reply Threaded More More options
Print post
Permalink
Hi Sebastian,

Yesterday Sebastian Harl wrote:

> ---
>  program/src/rrd_fetch.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

thanks
applied
tobi


--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers