1 import argparse
as _argparse
2 import textwrap
as _textwrap
6 """Help message formatter which retains line breaks in argument descriptions. 8 Only the name of this class is considered a public API. All the methods 9 provided by the class are considered an implementation detail. 14 for line
in text.splitlines():
15 line = self._whitespace_matcher.sub(
' ', line).
strip()
16 lines.extend( _textwrap.wrap(line, width) )
21 """Adaptor for argparse formatters using an explicit fixed width 23 def f(*args, **keywords):
25 keywords[
'width'] = width
26 return formatter(*args, **keywords)
def FixedWidthFormatter(formatter, width)