Message132233
I'm not sure about the usage_template approach - seems like it might be hard to make it work, while still supporting formatter_class. (Though maybe it's not so bad since the formatter class methods are all considered implementation details.) I'm open to patches though if you're willing to provide one.
In the meantime, a simple approach that will work is to override format_help():
class MyArgumentParser(argparse.ArgumentParser):
def format_help(self):
help = super(MyArgumentParser, self).format_help()
return headline + '\n' + help |
|
Date |
User |
Action |
Args |
2011-03-26 12:28:31 | bethard | set | recipients:
+ bethard, techtonik, sandro.tosi |
2011-03-26 12:28:31 | bethard | set | messageid: <1301142511.03.0.0148667867898.issue7284@psf.upfronthosting.co.za> |
2011-03-26 12:28:25 | bethard | link | issue7284 messages |
2011-03-26 12:28:25 | bethard | create | |
|