From 12122729a49b2831e6f5653ca88c7b5155f7b411 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Sun, 19 Nov 2023 00:17:25 +0100 Subject: [PATCH] docs: add a comment on missing config files Signed-off-by: Andrea Terzolo --- userspace/falco/app/actions/load_config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/userspace/falco/app/actions/load_config.cpp b/userspace/falco/app/actions/load_config.cpp index 1fe2da64..464cbaa0 100644 --- a/userspace/falco/app/actions/load_config.cpp +++ b/userspace/falco/app/actions/load_config.cpp @@ -86,6 +86,9 @@ falco::app::run_result falco::app::actions::load_config(falco::app::state& s) } else { + // Is possible to have an empty config file when we want to use some command line + // options like `--help`, `--version`, ... + // The configs used in `load_yaml` will be initialized to the default values. s.config->init(s.options.cmdline_config_options); } }