← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~jugmac00/launchpad:make-gpg-optional-for-make-lp-user into launchpad:master

 

Jürgen Gmach has proposed merging ~jugmac00/launchpad:make-gpg-optional-for-make-lp-user into launchpad:master.

Commit message:
Make gpg optional for make-lp-user

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~jugmac00/launchpad/+git/launchpad/+merge/412505
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~jugmac00/launchpad:make-gpg-optional-for-make-lp-user into launchpad:master.
diff --git a/utilities/make-lp-user b/utilities/make-lp-user
index 9d22fa3..83c964a 100755
--- a/utilities/make-lp-user
+++ b/utilities/make-lp-user
@@ -192,7 +192,11 @@ def parse_args(arguments):
     parser = OptionParser(description="Create a local Launchpad user.")
     parser.add_option(
         '-e', '--email', action='store', dest='email', default=None,
-        help="Email address; set to use real GPG key for this address.")
+        help="Email address")
+    parser.add_option(
+        '-g', '--gpg', action='store_true', dest='gpg',
+        help="Use real GPG key"
+    )
 
     options, args = parser.parse_args(arguments)
     if len(args) == 0:
@@ -220,7 +224,7 @@ def main(arguments):
     add_person_to_teams(person, options.teams)
     add_ssh_public_keys(person)
 
-    if options.email is not None:
+    if options.gpg is not None:
         attach_gpg_keys(options.email, person)
 
     transaction.commit()