This happens if any arguments not starting with a dash are passed to collectd.
Any of those are invalid, so let the user know about that.
Thanks to Kris (gruntruk) for (unknowingly) pointing that out ;-)
} /* switch (c) */
} /* while (1) */
+ if (optind < argc)
+ exit_usage ();
+
/*
* Read options from the config file, the environment and the command
* line (in that order, with later options overwriting previous ones in