diff --git a/pyredex/utils.py b/pyredex/utils.py index b2e85b5a69b..153e4fd7180 100644 --- a/pyredex/utils.py +++ b/pyredex/utils.py @@ -418,7 +418,7 @@ def __call__(self, parser, namespace, values, option_string=None): parser.add_argument( f"--{on_prefix}{flag_name}", f"--{off_prefix}{flag_name}", - dest=flag_name, + dest=flag_name.replace("-", "_"), action=FlagAction, default=False, **kwargs,