]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Merge branch 'autodoc'
authorSimon Pomarede <simon.pomarede@cea.fr>
Tue, 2 Feb 2016 13:15:34 +0000 (14:15 +0100)
committerSimon Pomarede <simon.pomarede@cea.fr>
Tue, 2 Feb 2016 13:15:34 +0000 (14:15 +0100)
Developments were made to enable automatic generation of the source code.

src/common/options.py

index 066eed9622de5de6d7102b11442a8175c4e1ab7a..d597cf0d2f8b2363080d943baecd97e4d9e83350 100644 (file)
@@ -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