argparse epilog call function?
Didymus
lynto28 at gmail.com
Tue Jun 27 09:55:42 EDT 2017
Greetings,
I might be barking up the wrong tree, but was wondering if there's a way to have the argpasre epilog call a function. for example:
epilog=Examples()
Where Examples is:
def Examples():
text = """Lots of examples"""
print(text.format())
I've place this in and found that it prints out no matter if I use the -h or
not and also it prints first.... If I do:
epilog='Single Example'
it works as intended, unfortunately, I need to show several examples. Just wondering if someone has found a why to do this (without making a custom help).
thanks
Tom
More information about the Python-list
mailing list