From 77b7236c261df69078790c113b4249158ba90c5e Mon Sep 17 00:00:00 2001
From: David Huss <dh@atoav.com>
Date: Mon, 24 Feb 2025 15:12:26 +0100
Subject: [PATCH] Fix help text for environment variables

---
 common_config/common.py | 8 ++++----
 pyproject.toml          | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common_config/common.py b/common_config/common.py
index 649a78a..af7d9ba 100755
--- a/common_config/common.py
+++ b/common_config/common.py
@@ -383,8 +383,8 @@ def create_config():
 1. DEFAULT_CONFIG (use config default to inspect)
 2. /etc/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order)
 3. $XDG_CONFIG_HOME/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order)
-4. ${APPLICATION_NAME}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order)
-5. ${APPLICATION_NAME}_CONFIG_PATH (final override)
+4. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order)
+5. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_PATH (final override)
 
 (Each overriding the fields in the previous one, where set)
 """
@@ -518,8 +518,8 @@ Configuration files are read from the following locations:
 1. DEFAULT_CONFIG (see below)
 2. /etc/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order)
 3. $XDG_CONFIG_HOME/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order)
-4. ${APPLICATION_NAME}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order)
-5. ${APPLICATION_NAME}_CONFIG_PATH (final override)
+4. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order)
+5. ${APPLICATION_NAME.upper().replace('-', '_').replace(' ', '_')}_CONFIG_PATH (final override)
 
 (Each overriding the fields in the previous one, where set)
 
diff --git a/pyproject.toml b/pyproject.toml
index 1135080..761e421 100755
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "common-config"
-version = "0.1.21"
+version = "0.1.22"
 description = "A config library for python based services"
 authors = ["David Huss <dh@atoav.com>"]
 
-- 
GitLab