def get_attribs(args):
    """ Get a list of attributes to set on a client when adding/updating it """
    attr_d = {}
    for i in args[2:]:
        attr, val = i.split('=', 1)
        if attr not in ['profile', 'uuid', 'password', 'floating', 'secure',
            'address', 'auth']:
            print('Attribute %s unknown' % attr)
            raise SystemExit(1)
        attr_d[attr] = val
    return attr_d
