projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
filter: Print meaningful error message if no filter options are given.
[paraslash.git]
/
filter.c
diff --git
a/filter.c
b/filter.c
index 8ebceb44fd574f9a06c91d9a4c23d897827fc9a0..bf428b36dbc7668ccd2ac139117c7eb8d7d73ec0 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, ¶ms))
return -E_FILTER_SYNTAX;
}
+ if (!conf.filter_given)
+ return -E_NO_FILTERS;
return 1;
}