title: Usage message string that optparse makes in python?
body: <p>I use optparse module to parse the options that I make, and it automatically generates usage message to print with -h option.</p>
  
  <p>How can I get the usage message as a string in a python script? I'd like to print out it when something's wrong with parsing.</p>