diff options
author | 2018-07-05 10:00:59 -0700 | |
---|---|---|
committer | 2018-07-06 22:22:13 -0700 | |
commit | a297c693402827cec3c5c1740b4559b040903030 (patch) | |
tree | 9e7dc4051f4d02d816ccbe0cc81705c5b7bae83b | |
parent | gkeys lib.py: Additional debug logging (diff) | |
download | gentoo-keys-a297c693402827cec3c5c1740b4559b040903030.tar.gz gentoo-keys-a297c693402827cec3c5c1740b4559b040903030.tar.bz2 gentoo-keys-a297c693402827cec3c5c1740b4559b040903030.zip |
gkeys base.py: Fix fetchonly typo and add to Args class
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r-- | gkeys/gkeys/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gkeys/gkeys/base.py b/gkeys/gkeys/base.py index 2de1493..8aff933 100644 --- a/gkeys/gkeys/base.py +++ b/gkeys/gkeys/base.py @@ -63,6 +63,7 @@ class Args(object): self.status = False self.timestamp = None self.uid = None + self.fetchonly = None class CliBase(object): @@ -131,7 +132,7 @@ class CliBase(object): help='Use CASE matching in searches') @staticmethod - def _option_fetcthonly(parser=None): + def _option_fetchonly(parser=None): parser.add_argument('--fetchonly', dest='fetchonly', default=False, help="Only fetch the seed file if there is an update or doesn't exist locally") @@ -375,6 +376,7 @@ class CliBase(object): func = getattr(self.actions, '%s' % self.cli_config['Action_Map'][args.action]['func']) self.logger.debug('Main: run; Found action: %s' % args.action) + self.logger.debug('Main: run; args: %s' % str(args.__dict__)) success, results = func(args) if not results: print("No results found. Check your configuration and that the", |