From 08c54481e255f19af5ef8877381241bc0ca70998 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 13 Jun 2024 14:34:52 +0100 Subject: [PATCH] [Minor] Allow to use --list-files without other arguments --- src/client/rspamc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5