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.tokkee.org/?a=commitdiff_plain;h=37ccda99b14b781ab2307e8c412844bd240b6eb2;p=rrdtool-all.git 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 --- 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; }