Update function docs for _parsers._is_allowed() function.
parent
1e03011296
commit
9b9e441dd7
|
@ -142,16 +142,17 @@ def _hyphenate(input, add_prefix=False):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def _is_allowed(input):
|
def _is_allowed(input):
|
||||||
"""
|
"""Check that an option or argument given to GPG is in the set of allowed
|
||||||
Check that an option or argument given to GPG is in the set of allowed
|
|
||||||
options, the latter being a strict subset of the set of all options known
|
options, the latter being a strict subset of the set of all options known
|
||||||
to GPG.
|
to GPG.
|
||||||
|
|
||||||
:param str input: An input meant to be parsed as an option or flag to the
|
:param str input: An input meant to be parsed as an option or flag to the
|
||||||
GnuPG process. Should be formatted the same as an option
|
GnuPG process. Should be formatted the same as an option
|
||||||
or flag to the commandline gpg, i.e. "--encrypt-files".
|
or flag to the commandline gpg, i.e. "--encrypt-files".
|
||||||
:ivar frozenset _possible: All known GPG options and flags.
|
|
||||||
:ivar frozenset _allowed: All allowed GPG options and flags, e.g. all GPG
|
:ivar frozenset gnupg_options: All known GPG options and flags.
|
||||||
|
|
||||||
|
:ivar frozenset allowed: All allowed GPG options and flags, e.g. all GPG
|
||||||
options and flags which we are willing to
|
options and flags which we are willing to
|
||||||
acknowledge and parse. If we want to support a
|
acknowledge and parse. If we want to support a
|
||||||
new option, it will need to have its own parsing
|
new option, it will need to have its own parsing
|
||||||
|
|
Loading…
Reference in New Issue