Skip to content

Commit

Permalink
[config.py] Improve legibility of text output
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Josten <[email protected]>
  • Loading branch information
Olf0 and HenkKalkwater authored Feb 28, 2024
1 parent 325e5ed commit 0a8c372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chumweb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class Config:

def init_config() -> Config:
"""
Loads config values from either command line arguments as `--config-value=x` or environment variables
CHUM_CONFIG_VALUE=x
Loads config values from either command line arguments as ``--<config-value>=x`` or environment variables
``CHUM_<CONFIG_VALUE>=x``.
"""
import getopt
import sys
Expand Down Expand Up @@ -96,7 +96,7 @@ def validate_config(c: Config):
def exit_with_error(err: str):
sys.exit(err)
if len(c.repos) == 0 and not c.obs_user:
exit_with_error("Either a list of repos must be specified or an obs_user and obs_password must be given")
exit_with_error("Either a list of repos must be specified or an obs_user and obs_password must be given.")


CONFIG = init_config()

0 comments on commit 0a8c372

Please sign in to comment.