Use new name space for the argument parser to avoid non given args to linger

in the webserver
This commit is contained in:
Florian Festi 2016-06-21 22:08:31 +02:00
parent 6299e5202d
commit 9a0d91afcd
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ class Boxes:
:param args: (Default value = None) parameters, None for using sys.argv
"""
self.argparser.parse_args(args=args, namespace=self)
for key,value in vars(self.argparser.parse_args(args=args)).items():
setattr(self, key, value)
def addPart(self, part, name=None):
"""