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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Sebastian Harl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

---
 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
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (204 bytes) Download Attachment

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

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 tobi@... ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers