Code

rrdfetch: Print a usage summary if not enough parameters have been given. -- Sebastia...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 4 Oct 2009 11:33:15 +0000 (11:33 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 4 Oct 2009 11:33:15 +0000 (11:33 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1926 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_fetch.c

index 2c30a980735dd40f24b6fb575672ea6e8c1ef865..b60ea158e53223651b6ac4c54a100c38f97fd000 100644 (file)
@@ -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;
     }