Show More
@@ -50,6 +50,9 b' def get_opts(opts):' | |||
|
50 | 50 | allopts[-1] += " <%s[+]>" % optlabel |
|
51 | 51 | elif (default is not None) and not isinstance(default, bool): |
|
52 | 52 | allopts[-1] += " <%s>" % optlabel |
|
53 | if '\n' in desc: | |
|
54 | # only remove line breaks and indentation | |
|
55 | desc = ' '.join(l.lstrip() for l in desc.split('\n')) | |
|
53 | 56 | desc += default and _(" (default: %s)") % default or "" |
|
54 | 57 | yield (", ".join(allopts), desc) |
|
55 | 58 |
General Comments 0
You need to be logged in to leave comments.
Login now