static int parse_config(int argc, char *argv[])
{
static char *cf; /* config file */
- struct stat statbuf;
+ struct stat statbuf;
int i;
if (cmdline_parser(argc, argv, &conf))
cf = make_message("%s/.paraslash/filter.conf", home);
free(home);
}
- if (!stat(cf, &statbuf)) {
+ if (!stat(cf, &statbuf)) {
if (cmdline_parser_configfile(cf, &conf, 0, 0, 0))
return -E_FILTER_SYNTAX;
}
return 1;
printf("available filters: ");
for (i = 0; filters[i].name; i++)
- printf("%s%s", i? " " : "", filters[i].name);
- printf("\nTry para_filter -f<filtername>:-h for help on <filtername>\n");
+ printf("%s%s%s", i? " " : "", filters[i].name,
+ filters[i].parse_config? "*": "");
+ printf("\nFilters marked with \"*\" have further command line options. Try\n"
+ "\tpara_filter -f '<filtername> -h'\nfor more information.\n");
exit(EXIT_SUCCESS);
}