Greetings,
I got what I was looking for:
def Examples():
text = """Lots of examples"""
return text.format()
parser = argparse.ArgumentParser(prog=sys.argv[0],
formatter_class=argparse.RawTextHelpFormatter,
description="Argparse Example",
epilog=text)
The key here is the "formatter_class=argparse.RawTestHelpFormatter". Once I set that the epilog prints out nicely formatted:
% ./test.py -h
usage: ./test.py [-h] [-n NAME] [-f | -m | -r | -v]
Argparse Example.
optional arguments:
-h, --help show this help message and exit
-n NAME, --name NAME Name to be created.
Examples:
Ex 1:
./test.py -n juser
Ex 2:
./test.py -n juser -r
...
Thanks for all the help.
-Tom