commit:     a297c693402827cec3c5c1740b4559b040903030
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  5 17:00:59 2018 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sat Jul  7 05:22:13 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=a297c693

gkeys base.py: Fix fetchonly typo and add to Args class

Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 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",

Reply via email to