Normalize arcade show -T input (#331)

Small change that normalizes the toolkit package name to use underscores
instead of hyphens. Python packages use underscores, not hyphens
This commit is contained in:
Eric Gustin 2025-03-27 09:38:37 -08:00 committed by GitHub
parent 887ded441e
commit 89a009d1af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ def create_cli_catalog(
Load toolkits from the python environment.
"""
if toolkit:
toolkit = toolkit.lower()
toolkit = toolkit.lower().replace("-", "_")
try:
prefixed_toolkit = "arcade_" + toolkit
toolkits = [Toolkit.from_package(prefixed_toolkit)]