aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-05-12 10:45:56 -0500
committerFrederick Muriuki Muriithi2025-05-12 10:45:56 -0500
commit5cedf63b71cb10d6183919f5a499c8bddb9fa602 (patch)
treeeaf73de95a3858f80b0a4a9acbef63dccc6811f6 /scripts
parent38732008ae3d6588291166bcfe706df8f00bb921 (diff)
downloadgn-uploader-5cedf63b71cb10d6183919f5a499c8bddb9fa602.tar.gz
Allow lowercase versions of the log-level choices.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cli_parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/cli_parser.py b/scripts/cli_parser.py
index d42ae66..0c91c5e 100644
--- a/scripts/cli_parser.py
+++ b/scripts/cli_parser.py
@@ -23,7 +23,8 @@ def init_cli_parser(program: str, description: Optional[str] = None) -> Argument
"--loglevel",
type=str,
default="INFO",
- choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"],
+ choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL",
+ "debug", "info", "warning", "error", "critical"],
help="The severity of events to track with the logger.")
return parser