changeset 41437 | 873a28d7e962 |
parent 41436 | 031d91623fdc |
child 42414 | eddff539f5be |
--- a/hgext/githelp.py Sat Jan 26 14:14:44 2019 -0800 +++ b/hgext/githelp.py Sat Jan 26 14:16:34 2019 -0800 @@ -121,7 +121,12 @@ for k, values in sorted(self.opts.iteritems()): for v in values: if v: - cmd += " %s %s" % (k, v) + if isinstance(v, int): + fmt = ' %s %d' + else: + fmt = ' %s %s' + + cmd += fmt % (k, v) else: cmd += " %s" % (k,) if self.args: