X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=filter.c;h=2cd6d09d4580ae89171e4213ab9a4abfd5df9748;hb=0439c3cd92853db1979001d46f8b8665bf0b31f8;hp=2e5e205eaed82d5d69e9ff81d7fa39082513a9b4;hpb=2ed89c59f0efcd0a2763f47c7d3455663241e623;p=paraslash.git diff --git a/filter.c b/filter.c index 2e5e205e..2cd6d09d 100644 --- a/filter.c +++ b/filter.c @@ -17,7 +17,6 @@ */ /** \file filter.c the stand-alone filter program */ -#include "gcc-compat.h" #include "para.h" #include "filter.cmdline.h" @@ -96,7 +95,7 @@ static void open_filters(void) 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)) @@ -106,7 +105,7 @@ static int parse_config(int argc, char *argv[]) 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; } @@ -114,8 +113,10 @@ static int parse_config(int argc, char *argv[]) return 1; printf("available filters: "); for (i = 0; filters[i].name; i++) - printf("%s%s", i? " " : "", filters[i].name); - printf("\nTry para_filter -f:-h for help on \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 ' -h'\nfor more information.\n"); exit(EXIT_SUCCESS); }