diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2015-01-07 19:42:26 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-01-07 19:42:26 -0800 |
commit | 807bb140b51eb75ac25474ff76577b09be04b1d1 (patch) | |
tree | dd94a1534d9ea8af826711defd5083ba7f18410f /gkeys-gen | |
parent | gentoo-keys: Update .gitignore (diff) | |
download | gentoo-keys-807bb140b51eb75ac25474ff76577b09be04b1d1.tar.gz gentoo-keys-807bb140b51eb75ac25474ff76577b09be04b1d1.tar.bz2 gentoo-keys-807bb140b51eb75ac25474ff76577b09be04b1d1.zip |
gkeys, gkeys-gen: Add --version option
Diffstat (limited to 'gkeys-gen')
-rw-r--r-- | gkeys-gen/gkeygen/__init__.py | 2 | ||||
-rw-r--r-- | gkeys-gen/gkeygen/cli.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gkeys-gen/gkeygen/__init__.py b/gkeys-gen/gkeygen/__init__.py index e990779..ea87b6a 100644 --- a/gkeys-gen/gkeygen/__init__.py +++ b/gkeys-gen/gkeygen/__init__.py @@ -15,7 +15,7 @@ for cmd in Available_Actions: subdata[cmd] = Action_Map[cmd]['desc'] Gkeys_Map = { - 'options': ['help', 'config', 'debug'], + 'options': ['help', 'config', 'debug', 'version'], 'desc': 'OpenPGP/GPG key generator tool', 'long_desc': '''Gentoo Keys (gkeys) is a Python based project that aims to manage the GPG keys used for validation on users and Gentoo's infrastracutre servers. diff --git a/gkeys-gen/gkeygen/cli.py b/gkeys-gen/gkeygen/cli.py index 561bf9f..f522814 100644 --- a/gkeys-gen/gkeygen/cli.py +++ b/gkeys-gen/gkeygen/cli.py @@ -7,6 +7,7 @@ from __future__ import print_function import os import sys +from gkeys import __version__ from gkeys.config import GKeysConfig from gkeys.base import CliBase from gkeygen.actions import Actions, Available_Actions, Action_Map @@ -35,6 +36,7 @@ class Main(CliBase): 'description': 'Gentoo Keys GPG key generator program', 'epilog': '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!''' } + self.version = __version__ def __call__(self, args=None): |