From 397379136abf8e34961f6fe7dc5b435cac61ca28 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/program@1926 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 2c30a98..b60ea15 100644 --- a/src/rrd_fetch.c +++ b/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.11.0