From: Andre Noll Date: Tue, 12 Jan 2010 03:28:02 +0000 (+0100) Subject: filter: Print meaningful error message if no filter options are given. X-Git-Tag: v0.4.2~149 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=5dca082c9d8261794d9cc63ed241aa3afa5bb50a filter: Print meaningful error message if no filter options are given. --- diff --git a/filter.c b/filter.c index 8ebceb44..bf428b36 100644 --- a/filter.c +++ b/filter.c @@ -87,6 +87,8 @@ static int parse_config(int argc, char *argv[]) if (filter_cmdline_parser_config_file(cf, &conf, ¶ms)) return -E_FILTER_SYNTAX; } + if (!conf.filter_given) + return -E_NO_FILTERS; return 1; }