From 37ccda99b14b781ab2307e8c412844bd240b6eb2 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 4 Oct 2009 11:33:15 +0000 Subject: [PATCH] rrdfetch: Print a usage summary if not enough parameters have been given. -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1926 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_fetch.c b/program/src/rrd_fetch.c index 2c30a980..b60ea158 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 [options]", argv[0]); return -1; } -- 2.30.2