def parse(self, argv):
        """Parse the given argument vector."""
        kwargs, args = self.parse_args(argv)
        self.result['args'] += args
        # Annoying that parse_args doesn't just return a dict
        for dest in self.dests:
            value = getattr(kwargs, dest)
            if value is not None:
                self.result['kwargs'][dest] = value
        return self
def parse ( self , argv ) : kwargs , args = self . parse_args ( argv ) self . result [ 'args' ] += args for dest in self . dests : value = getattr ( kwargs , dest ) if value is not None : self . result [ 'kwargs' ] [ dest ] = value return self
Parse the given argument vector.