##// END OF EJS Templates
githelp: format with %d if an integer...
Gregory Szorc -
r41460:873a28d7 default
parent child Browse files
Show More
@@ -121,7 +121,12 b' class Command(object):'
121 for k, values in sorted(self.opts.iteritems()):
121 for k, values in sorted(self.opts.iteritems()):
122 for v in values:
122 for v in values:
123 if v:
123 if v:
124 cmd += " %s %s" % (k, v)
124 if isinstance(v, int):
125 fmt = ' %s %d'
126 else:
127 fmt = ' %s %s'
128
129 cmd += fmt % (k, v)
125 else:
130 else:
126 cmd += " %s" % (k,)
131 cmd += " %s" % (k,)
127 if self.args:
132 if self.args:
General Comments 0
You need to be logged in to leave comments. Login now