Executes command based on given arguments.

def execute(self, argv=None):
        """
        Executes command based on given arguments.
        """
        if self.completion:
            self.autocomplete()
        parser = self.get_parser()
        namespace = parser.parse_args(argv)
        if hasattr(namespace, 'func'):
            self.run_command(namespace)