From: Brian Dolbec Date: Sat, 22 Jun 2013 01:38:50 +0000 (-0700) Subject: Add a --nick option. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b31b5cbc9bf1ee54da8aa269d74e38c00bc5015;p=gentoo-keys.git Add a --nick option. Move the --name short option to -N, so -n could be for --nick. Fix a copied message that I failed to edit. --- diff --git a/gkeys/cli.py b/gkeys/cli.py index d3d0786..f9720f9 100644 --- a/gkeys/cli.py +++ b/gkeys/cli.py @@ -72,8 +72,10 @@ class Main(object): help='The destination seed file or keyring for move, copy operations') parser.add_argument('-f', '--fingerprint', dest='fingerprint', default=None, help='The fingerprint of the the key') - parser.add_argument('-n', '--name', dest='name', default=None, + parser.add_argument('-N', '--name', dest='name', default=None, help='The name of the the key') + parser.add_argument('-n', '--nick', dest='nick', default=None, + help='The nick associated with the the key') parser.add_argument('-k', '--keyid', dest='keyid', default=None, help='The keyid of the the key') parser.add_argument('-l', '--longkeyid', dest='longkeyid', default=None, @@ -225,7 +227,7 @@ class Main(object): % (args.seeds, str(success)), sourcekeys[0]]) return messages elif len(sourcekeys): - messages = ["Too many seeds found to remove"] + messages = ["Too many seeds found to move"] messages.extend(sourcekeys) return messages messages.append("Failed to Move seed:")