Put verbosity args before other options/args.
* FIXES Issue #76: https://github.com/isislovecruft/python-gnupg/issues/76fix/76-verbose-flag-order
parent
fecf92c0ac
commit
59992eb8c3
|
@ -500,11 +500,9 @@ class GPGBase(object):
|
|||
if self.use_agent: cmd.append('--use-agent')
|
||||
else: cmd.append('--no-use-agent')
|
||||
|
||||
if self.options:
|
||||
[cmd.append(opt) for opt in iter(_sanitise_list(self.options))]
|
||||
if args:
|
||||
[cmd.append(arg) for arg in iter(_sanitise_list(args))]
|
||||
|
||||
# The arguments for debugging and verbosity should be placed into the
|
||||
# cmd list before the options/args in order to resolve Issue #76:
|
||||
# https://github.com/isislovecruft/python-gnupg/issues/76
|
||||
if self.verbose:
|
||||
cmd.append('--debug-all')
|
||||
|
||||
|
@ -517,6 +515,11 @@ class GPGBase(object):
|
|||
else:
|
||||
cmd.append('--debug-level %s' % self.verbose)
|
||||
|
||||
if self.options:
|
||||
[cmd.append(opt) for opt in iter(_sanitise_list(self.options))]
|
||||
if args:
|
||||
[cmd.append(arg) for arg in iter(_sanitise_list(args))]
|
||||
|
||||
return cmd
|
||||
|
||||
def _open_subprocess(self, args=None, passphrase=False):
|
||||
|
|
Loading…
Reference in New Issue