From: oetiker Date: Sun, 4 Oct 2009 11:33:15 +0000 (+0000) Subject: rrdfetch: Print a usage summary if not enough parameters have been given. -- Sebastia... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=397379136abf8e34961f6fe7dc5b435cac61ca28;p=rrdtool.git 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 --- 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; }