Search code examples
pythonoptparse

Own help message using optparse


is possible to make own help message or attach own event on help option using optparse module in Python?


Solution

  • You should be able to replace the default help mechanism with your own merely by subclassing OptionParser and overriding the print_help() method.