summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8498ea3)
raw | patch | inline | side by side (parent: 8498ea3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 9 May 2006 18:46:14 +0000 (18:46 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 9 May 2006 18:46:14 +0000 (18:46 +0000) |
program/src/rrd_create.c | patch | blob | history |
index 5eac3600952d14684146aae0625df6c27ec53617..46006ea5d1b77e4552f0ec49a478145ee99edc9c 100644 (file)
--- a/program/src/rrd_create.c
+++ b/program/src/rrd_create.c
return(-1);
}
}
-
+ if (optind == argc) {
+ rrd_set_error("what is the name of the rrd file you want to create?");
+ return -1;
+ }
rc = rrd_create_r(argv[optind],
pdp_step, last_up,
argc - optind - 1, argv + optind + 1);