From: Serge Rehbinder Date: Tue, 2 Feb 2016 13:12:23 +0000 (+0100) Subject: Bug fix in options class X-Git-Tag: sprint-02~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=077fdff81151e25da0e3bd3a5321d06aa01b7cc2;p=tools%2Fsat.git Bug fix in options class --- 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