From dc0d9cf70b6db4ca200145a2e25d8fe4bb3a6bbc Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Wed, 10 Apr 2013 19:16:58 +0000 Subject: [PATCH] Update docstring for GPG.gen_key_input() with details on batch file syntax. --- gnupg.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnupg.py b/gnupg.py index 386fcaf..062b1b7 100644 --- a/gnupg.py +++ b/gnupg.py @@ -1620,8 +1620,15 @@ class GPG(object): return result def gen_key_input(self, **kwargs): - """ - Generate --gen-key input per gpg doc/DETAILS + """Generate GnuPG key(s) through batch file key generation. + + The GnuPG batch file key generation feature allows unattended key + generation by creating a file with special syntax and then providing it + to: + $ gpg --gen-key --batch + + see http://www.gnupg.org/documentation/manuals/gnupg-devel/Unattended-GPG-key-generation.html#Unattended-GPG-key-generation + for more details. """ parms = {} for key, val in list(kwargs.items()):