summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-06-13 14:34:52 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-06-13 14:34:52 +0100
commit08c54481e255f19af5ef8877381241bc0ca70998 (patch)
tree7df4f7970ff6a5a3e46e5b38b72c2d45114eb3c7 /src
parent11162aeff39fe2e0cda2deb4880d7b28096f4e9d (diff)
downloadrspamd-08c54481e255f19af5ef8877381241bc0ca70998.tar.gz
rspamd-08c54481e255f19af5ef8877381241bc0ca70998.zip
[Minor] Allow to use --list-files without other arguments
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index 4afcefacd..5a9a654e4 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -2295,7 +2295,7 @@ int main(int argc, char **argv, char **env)
add_options(kwattrs);
auto cmd = maybe_cmd.value();
- if (start_argc == argc) {
+ if (start_argc == argc && files_list == nullptr) {
/* Do command without input or with stdin */
if (empty_input) {
rspamc_process_input(event_loop, cmd, nullptr, "empty", kwattrs);