def get_profile_parser(api, opts):
    """ Get user profile description
    _ print JSONObject profile description
    _ print JSONObject profile's list description

    :param api: API Rest api object
    :param opts: command-line parser opts
    :type opts: Namespace object with opts attribute
    """
    assert opts.list or opts.name is not None
    if opts.list:
        profile_dict = api.get_profiles(opts.archi)
    else:
        profile_dict = api.get_profile(opts.name)
    return profile_dict
