Change to ArgumentDefaultsHelpFormatter.
Changed from this:
formatter_class=argparse.RawTextHelpFormatter
To this:
formatter_class=argparse.ArgumentDefaultsHelpFormatter
This greatly improves the formatting of the help text.
Change-Id: Ie3ad6afe0b3cda50e1b032c37a20ff22733de9bd
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/templates/python_pgm_template b/templates/python_pgm_template
index 9e70cbd..fa3b0c2 100644
--- a/templates/python_pgm_template
+++ b/templates/python_pgm_template
@@ -20,7 +20,7 @@
parser = argparse.ArgumentParser(
usage='%(prog)s [OPTIONS]',
description="%(prog)s will...",
- formatter_class=argparse.RawTextHelpFormatter,
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prefix_chars='-+')
parser.add_argument(