diff --git a/gnupg.py b/gnupg.py index 70be36b..04c07e7 100644 --- a/gnupg.py +++ b/gnupg.py @@ -775,7 +775,7 @@ def _is_allowed(input): """).split() ## these are all the options that GPG knows: - vars = frozenset([x.lstrip('-').replace('-', '_') for x in _possible]) + vars = frozenset([_underscore(x, remove_prefix=True) for x in _possible]) ## these are the allowed options we will handle so far, all others should ## be dropped. this dance is so that when new options are added later, we