def print_usage(self, str_cmd):
    cmd = self._get_command(str_cmd)
    if (cmd is not None):
        print('Usage: {} {}'.format(cmd.cmd_str, ' '.join(cmd.params)))
    else:
        logger.error('Unknown command {}'.format(str_cmd))
    return False
def print_usage(self, str_cmd):
    cmd = self._get_command(str_cmd)
    if (cmd is not None):
        print('Usage: {} {}'.format(cmd.cmd_str, ' '.join(cmd.params)))
    else:
        logger.error('Unknown command {}'.format(str_cmd))
    return False