diff options
author | 2015-01-02 00:31:35 -0800 | |
---|---|---|
committer | 2015-01-03 10:21:15 -0800 | |
commit | 44ad542baec0f6498c5119adf70daf69dd55c245 (patch) | |
tree | a4038be69b26a7f5c92daae47a3367806abfa4d9 /gkeys | |
parent | gkeys/actions.py: sort the actions and the options for a better display (diff) | |
download | gentoo-keys-44ad542baec0f6498c5119adf70daf69dd55c245.tar.gz gentoo-keys-44ad542baec0f6498c5119adf70daf69dd55c245.tar.bz2 gentoo-keys-44ad542baec0f6498c5119adf70daf69dd55c245.zip |
gkeys/base.py: Correct the option help messages
Remove nargs='*' from name option.
Diffstat (limited to 'gkeys')
-rw-r--r-- | gkeys/gkeys/base.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gkeys/gkeys/base.py b/gkeys/gkeys/base.py index 5c9505d..b617306 100644 --- a/gkeys/gkeys/base.py +++ b/gkeys/gkeys/base.py @@ -103,12 +103,13 @@ class CliBase(object): def _option_fingerprint(parser=None): parser.add_argument('-f', '--fingerprint', dest='fingerprint', default=None, nargs='+', - help='The fingerprint of the the key') + help='The fingerprint(s) of the the key or subkey') @staticmethod def _option_gpgsearch(parser=None): - parser.add_argument('-g', '--gpgsearch', dest='gpgsearch', default=None, - help='Do a gpg search operations, rather than a gkey search') + parser.add_argument('-g', '--gpgsearch', dest='gpgsearch', + action='store_true', default=False, + help='Do a gpg search operation, rather than a gkey search') @staticmethod def _option_homedir(parser=None): @@ -136,12 +137,12 @@ class CliBase(object): def _option_keys(parser=None): parser.add_argument('-K', '--keys', dest='keys', nargs='*', default=None, - help='The name of the keyring to use for verification, etc.') + help='The fingerprint(s) of the primary keys in the keyring.') @staticmethod def _option_mail(parser=None): parser.add_argument('-m', '--mail', dest='mail', default=None, - help='The email address to search for') + help='The email address to search for or use.') @staticmethod def _option_nick(parser=None): |