def destroy(self):
OptionContainer.destroy(self)<EOL>for group in self.option_groups:<EOL><INDENT>group.destroy()<EOL><DEDENT>del self.option_list<EOL>del self.option_groups<EOL>del self.formatter<EOL>
Declare that you are done with this OptionParser.  This cleans up
reference cycles so the OptionParser (and all objects referenced by
it) can be garbage-collected promptly.  After calling destroy(), the
OptionParser is unusable.