Show More
@@ -31,6 +31,7 b' from mercurial import (' | |||||
31 | commands, |
|
31 | commands, | |
32 | encoding, |
|
32 | encoding, | |
33 | extensions, |
|
33 | extensions, | |
|
34 | fancyopts, | |||
34 | help, |
|
35 | help, | |
35 | minirst, |
|
36 | minirst, | |
36 | pycompat, |
|
37 | pycompat, | |
@@ -86,6 +87,8 b' def get_opts(opts):' | |||||
86 | if b'\n' in desc: |
|
87 | if b'\n' in desc: | |
87 | # only remove line breaks and indentation |
|
88 | # only remove line breaks and indentation | |
88 | desc = b' '.join(l.lstrip() for l in desc.split(b'\n')) |
|
89 | desc = b' '.join(l.lstrip() for l in desc.split(b'\n')) | |
|
90 | if isinstance(default, fancyopts.customopt): | |||
|
91 | default = default.getdefaultvalue() | |||
89 | if default: |
|
92 | if default: | |
90 | default = stringutil.forcebytestr(default) |
|
93 | default = stringutil.forcebytestr(default) | |
91 | desc += _(b" (default: %s)") % default |
|
94 | desc += _(b" (default: %s)") % default |
General Comments 0
You need to be logged in to leave comments.
Login now