Mercurial > repos > fubar > tool_factory_2
comparison toolfactory/rgToolFactory2.py @ 34:5052ac89c036 draft
fix to argparse xml
author | fubar |
---|---|
date | Sat, 08 Aug 2020 06:06:45 -0400 |
parents | 4d578c8c1613 |
children | ce2b1f8ea68d |
comparison
equal
deleted
inserted
replaced
33:c5290ea7bae0 | 34:5052ac89c036 |
---|---|
269 """ | 269 """ |
270 aCL = self.cl.append | 270 aCL = self.cl.append |
271 aXCL = self.xmlcl.append | 271 aXCL = self.xmlcl.append |
272 # inputs then params in argparse named form | 272 # inputs then params in argparse named form |
273 for (o_v,k, v) in self.xclsuffix: | 273 for (o_v,k, v) in self.xclsuffix: |
274 if len(k.strip()) == 1: | |
275 k = '-%s' % k | |
276 else: | |
277 k = '--%s' % k | |
274 aXCL(k) | 278 aXCL(k) |
275 aXCL(v) | 279 aXCL(v) |
276 for (o_v,k, v) in self.clsuffix: | 280 for (o_v,k, v) in self.clsuffix: |
277 if len(k.strip()) == 1: | 281 if len(k.strip()) == 1: |
278 k = '-%s' % k | 282 k = '-%s' % k |