better cli param validation and output

This commit is contained in:
Manuel Barkhau 2018-12-21 19:19:48 +01:00
parent f980139e82
commit e5e87ced19
2 changed files with 28 additions and 19 deletions

View file

@ -216,7 +216,7 @@ def _parse_config(raw_cfg: RawConfig) -> Config:
def parse(ctx: ProjectContext) -> MaybeConfig:
"""Parse config file if available."""
if not ctx.config_filepath.exists():
log.error(f"File not found: {ctx.config_filepath}")
log.warning(f"File not found: {ctx.config_filepath}")
return None
try: