diff --git a/NEWS.md b/NEWS.md index 2f3778d9..8206a12e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -13,7 +13,7 @@ * Disallow abbreviated arguments * Support backend specific options and HTTP headers * Optional argument for boolean options - * Require argument for `--config` + * Load no config file for `--config` without argument * Allow float for server->timeout setting * Fix **is-not-defined** filter in **addressbook-query** report * Add python type hints diff --git a/radicale/__main__.py b/radicale/__main__.py index aa3382f1..747dc493 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -155,7 +155,8 @@ def run() -> None: configuration = config.load(config.parse_compound_paths( config.DEFAULT_CONFIG_PATH, os.environ.get("RADICALE_CONFIG"), - os.pathsep.join(args_ns.config) if args_ns.config else None)) + os.pathsep.join(args_ns.config) if args_ns.config is not None + else None)) if arguments_config: configuration.update(arguments_config, "command line arguments") except Exception as e: