def get_cmd_handler(self, cmd):
        """
        Return an handler for cmd.
        The handler and the command should have the same name.
        See class description for more info about handlers.

        Args:
            cmd (str): The name of the command

        Returns:
            callable: which handles cmd

        Raises:
            lago.build.BuildException: If an handler for cmd doesn't exist
        """
        cmd = cmd.replace('-', '_')
        handler = getattr(self, cmd, None)
        if not handler:
            raise BuildException(
                'Command {} is not supported as a '
                'build command'.format(cmd)
            )
        return handler
def get_cmd_handler ( self , cmd ) : cmd = cmd . replace ( '-' , '_' ) handler = getattr ( self , cmd , None ) if not handler : raise BuildException ( 'Command {} is not supported as a ' 'build command' . format ( cmd ) ) return handler
Return an handler for cmd.
        The handler and the command should have the same name.
        See class description for more info about handlers.

        Args:
            cmd (str): The name of the command

        Returns:
            callable: which handles cmd

        Raises:
            lago.build.BuildException: If an handler for cmd doesn't exist