'Execute the module from command line.
Get command line string as argument. Called from terminal.
Normally does not need to be overridden.
Args:
line (str): the module arguments.
cmd (str): the executed command
Return:
Object. The result of the module execution.'

def run_cmdline(self, line, cmd=''):

    try:
        command = shlex.split(line)
    except Exception as e:
        import traceback
        log.debug(traceback.format_exc())
        log.warn((messages.generic.error_parsing_command_s % str(e)))
        return
    try:
        result = self.run_argv(command)
    except (KeyboardInterrupt, EOFError):
        log.info((messages.module.module_s_exec_terminated % self.name))
        return
    except ArgparseError:
        return
    except Exception as e:
        import traceback
        log.debug(traceback.format_exc())
        log.warn((messages.module.error_module_exec_error_s % str(e)))
        return
    self.print_result((result[:(-1)] if (isinstance(result, basestring) and result.endswith('\n')) else result))
    return result
