From a297c693402827cec3c5c1740b4559b040903030 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Thu, 5 Jul 2018 10:00:59 -0700 Subject: gkeys base.py: Fix fetchonly typo and add to Args class Signed-off-by: Brian Dolbec --- gkeys/gkeys/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3-65-gdbad