A custom argparse help formatter.

Review Request #817 — Created Aug. 1, 2014 and submitted

benjyw
pants
pants-reviews
zundel
Squelches the extraneous parts of the argparse help message
(headers, usage etc.) since we format those ourselves. Leaves
just the per-flag help.

Note that subclassing the formatter is an official part of the
argparse API, so this is not underhanded or fragile.


ZU
  1. Ship It!
    1. (I checked out the argparse source at https://code.google.com/p/argparse/source/browse/argparse.py to see how that formatter override works.)
  2. 
      
BE
Review request changed

Status: Closed (submitted)

Loading...