diff --git a/jrnr/jrnr.py b/jrnr/jrnr.py index 1a49b83..60d464e 100644 --- a/jrnr/jrnr.py +++ b/jrnr/jrnr.py @@ -76,6 +76,11 @@ ''' +def _normalize(name): + ''' normalize click commands with underscores to dashes for click>=7.0 compatability ''' + return name.replace("_", "-") + + def _product(values): ''' Examples @@ -345,7 +350,7 @@ def slurm_runner( warnings.warn(warning, FutureWarning) - @click.group() + @click.group(context_settings={"token_normalize_func": _normalize}) def slurm(): pass