This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients berker.peksag, bethard, chris.jerdonek, jcon, paul.j3, petri.lehtinen
Date 2014-06-21.19:01:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403377291.94.0.81348144539.issue11695@psf.upfronthosting.co.za>
In-reply-to
Content
That original template can also be implemented with a customized 'format_help':

    def custom_help(self):
        formatter = self._get_formatter()
        formatter.add_text('My Program, version 3.5')
        formatter.add_usage(self.usage, self._actions,
                        self._mutually_exclusive_groups,
                        prefix='Usage: ')
        formatter.add_text('Some description of my program')
        for action_group in self._action_groups:
            with formatter.add_section(action_group.title):
                formatter.add_text(action_group.description)
                formatter.add_arguments(action_group._group_actions)
        formatter.add_text('My epilog text')
        return formatter.format_help()
History
Date User Action Args
2014-06-21 19:01:32paul.j3setrecipients: + paul.j3, bethard, chris.jerdonek, jcon, petri.lehtinen, berker.peksag
2014-06-21 19:01:31paul.j3setmessageid: <1403377291.94.0.81348144539.issue11695@psf.upfronthosting.co.za>
2014-06-21 19:01:31paul.j3linkissue11695 messages
2014-06-21 19:01:31paul.j3create