def METHOD_NAME(self,*args,**kwargs):
    options,arguments = OptionParser.METHOD_NAME(self,*args,**kwargs)
    def prune_options(options,alist):
        """Given 'options' -- a list of arguments to OptionParser.add_option,
        and a set of optparse Values, return a dictionary of only those values
        that apply exclusively to 'options'"""
        return dict( [ (k,getattr(options,k)) for k in dir(options) if k in alist ] )
    api_options = prune_options(options,self.api_dests)
    cmd_options = prune_options(options,self.cmd_dests)
    return options,arguments,api_options,cmd_options