Repository 'tool_factory_2'
hg clone https://toolshed.g2.bx.psu.edu/repos/fubar/tool_factory_2

Changeset 34:5052ac89c036 (2020-08-08)
Previous changeset 33:c5290ea7bae0 (2020-08-08) Next changeset 35:5d38cb3d9be8 (2020-08-08)
Commit message:
fix to argparse xml
modified:
toolfactory/rgToolFactory2.py
b
diff -r c5290ea7bae0 -r 5052ac89c036 toolfactory/rgToolFactory2.py
--- a/toolfactory/rgToolFactory2.py Sat Aug 08 02:29:33 2020 -0400
+++ b/toolfactory/rgToolFactory2.py Sat Aug 08 06:06:45 2020 -0400
b
@@ -271,6 +271,10 @@
         aXCL = self.xmlcl.append
         # inputs then params in argparse named form
         for (o_v,k, v) in self.xclsuffix:
+            if len(k.strip()) == 1:
+                k = '-%s' % k
+            else:
+                k = '--%s' % k
             aXCL(k)
             aXCL(v)
         for (o_v,k, v) in self.clsuffix: