From 2471633a54605b7f20da1a8438c91b089e578ff7 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 22 Jan 2011 16:08:20 +0100 Subject: local ops: DEBUG print of WrapArgs object --- src/fedpkg.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fedpkg.py b/src/fedpkg.py index ec1c1a5..4fb0f94 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -863,6 +863,9 @@ class WrapArgs(object): # take attribute directly from original argparse.Namespace __args return getattr(self.__args, name) + def __str__(self): + return "WrapArgs(%s)" % (str(self.__args)) + def parse_cmdline(generate_manpage = False): """Parse the command line""" @@ -1294,6 +1297,7 @@ packages will be built sequentially. # The main code goes here if __name__ == '__main__': args = parse_cmdline() + print "args:", args # setup the logger -- This logger will take things of INFO or DEBUG and # log it to stdout. Anything above that (WARN, ERROR, CRITICAL) will go -- cgit