Load no config file for --config without argument
This commit is contained in:
parent
f75671354c
commit
4564de9f9d
2
NEWS.md
2
NEWS.md
@ -13,7 +13,7 @@
|
|||||||
* Disallow abbreviated arguments
|
* Disallow abbreviated arguments
|
||||||
* Support backend specific options and HTTP headers
|
* Support backend specific options and HTTP headers
|
||||||
* Optional argument for boolean options
|
* Optional argument for boolean options
|
||||||
* Require argument for `--config`
|
* Load no config file for `--config` without argument
|
||||||
* Allow float for server->timeout setting
|
* Allow float for server->timeout setting
|
||||||
* Fix **is-not-defined** filter in **addressbook-query** report
|
* Fix **is-not-defined** filter in **addressbook-query** report
|
||||||
* Add python type hints
|
* Add python type hints
|
||||||
|
@ -155,7 +155,8 @@ def run() -> None:
|
|||||||
configuration = config.load(config.parse_compound_paths(
|
configuration = config.load(config.parse_compound_paths(
|
||||||
config.DEFAULT_CONFIG_PATH,
|
config.DEFAULT_CONFIG_PATH,
|
||||||
os.environ.get("RADICALE_CONFIG"),
|
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:
|
if arguments_config:
|
||||||
configuration.update(arguments_config, "command line arguments")
|
configuration.update(arguments_config, "command line arguments")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user