From 077fdff81151e25da0e3bd3a5321d06aa01b7cc2 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 2 Feb 2016 14:12:23 +0100 Subject: [PATCH] Bug fix in options class --- src/common/options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/options.py b/src/common/options.py index 066eed9..d597cf0 100644 --- a/src/common/options.py +++ b/src/common/options.py @@ -113,7 +113,7 @@ class Options: ''' if argList is None: argList = sys.argv[1:] - + # format shortNameOption and longNameOption to make right arguments to getopt.getopt function shortNameOption = "" longNameOption = [] @@ -163,5 +163,7 @@ class Options: option['result'].extend(elts) optResult.__setattr__(option['destName'], option['result']) + # free the option in order to be able to make a new free call of options (API case) + option['result'] = None return optResult, args -- 2.39.2