@@ -297,17 +297,17 @@ formatter_class
297297^^^^^^^^^^^^^^^
298298
299299:class: `ArgumentParser ` objects allow the help formatting to be customized by
300- specifying an alternate formatting class. Currently, there are four such
300+ specifying an alternate formatting class. Currently, there are five such
301301classes:
302302
303303.. class :: RawDescriptionHelpFormatter
304304 RawTextHelpFormatter
305- FlexiHelpFormatter
305+ ParagraphHelpFormatter
306306 ArgumentDefaultsHelpFormatter
307307 MetavarTypeHelpFormatter
308308
309309:class: `RawDescriptionHelpFormatter `, :class: `RawTextHelpFormatter `, and
310- :class: `FlexiHelpFormatter ` give more control over how textual descriptions
310+ :class: `ParagraphHelpFormatter ` give more control over how textual descriptions
311311are displayed.
312312By default, :class: `ArgumentParser ` objects line-wrap the description _ and
313313epilog _ texts in command-line help messages::
@@ -363,16 +363,17 @@ including argument descriptions. However, multiple newlines are replaced with
363363one. If you wish to preserve multiple blank lines, add spaces between the
364364newlines.
365365
366- :class: `FlexiHelpFormatter ` wraps description and help text like the default
367- formatter, while preserving paragraphs and supporting bulleted lists. Bullet
368- list items are recognized by markers such as "*", "-", "+", or ">" characters, or
369- by alphanumeric sequences followed by "." or ")" (e.g. 1., a), iv.)::
366+ :class: `ParagraphHelpFormatter ` wraps description and help text like the
367+ default formatter, while preserving paragraphs and supporting bulleted lists.
368+ Bullet list items are recognized by markers such as "*", "-", "+", or ">"
369+ characters, or by alphanumeric sequences followed by "." or ")" (e.g. 1., a),
370+ iv.)::
370371
371372 >>> parser = argparse.ArgumentParser(
372373 ... prog='PROG',
373- ... formatter_class=argparse.FlexiHelpFormatter ,
374+ ... formatter_class=argparse.ParagraphHelpFormatter ,
374375 ... description="""
375- ... The FlexiHelpFormatter will wrap text within paragraphs
376+ ... The ParagraphHelpFormatter will wrap text within paragraphs
376377 ... when required to in order to make the text fit.
377378 ...
378379 ... Paragraphs are preserved.
@@ -392,7 +393,7 @@ by alphanumeric sequences followed by "." or ")" (e.g. 1., a), iv.)::
392393 >>> parser.print_help()
393394 usage: PROG [-h] argument
394395
395- The FlexiHelpFormatter will wrap text within paragraphs when required to in
396+ The ParagraphHelpFormatter will wrap text within paragraphs when required to in
396397 order to make the text fit.
397398
398399 Paragraphs are preserved.
@@ -412,7 +413,7 @@ by alphanumeric sequences followed by "." or ")" (e.g. 1., a), iv.)::
412413
413414
414415.. versionadded :: 3.15
415- :class: `FlexiHelpFormatter ` class was added.
416+ :class: `ParagraphHelpFormatter ` class was added.
416417
417418:class: `ArgumentDefaultsHelpFormatter ` automatically adds information about
418419default values to each of the argument help messages::
0 commit comments