filter: Print meaningful error message if no filter options are given.
[paraslash.git] / filter.c
index 8ebceb4..bf428b3 100644 (file)
--- 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, &params))
                        return -E_FILTER_SYNTAX;
        }
+       if (!conf.filter_given)
+               return -E_NO_FILTERS;
        return 1;
 }