<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def competitions_list_cli(self, group=None, category=None, sort_by=None, page=1, search=None, csv_display=False):
 """ a wrapper for competitions_list for the client. Parameters ========== group: group to filter result to category: category to filter result to sort_by: how to sort the result, see valid_sort_by for options page: the page to return (default is 1) search: a search term to use (default is empty string) csv_display: if True, print comma separated values """

        competitions = self.competitions_list(
            group=group,
            category=category,
            sort_by=sort_by,
            page=page,
            search=search)
        fields = [
            'ref', 'deadline', 'category', 'reward', 'teamCount',
            'userHasEntered'
        ]
        if competitions:
            if csv_display:
                self.print_csv(competitions, fields)
            else:
                self.print_table(competitions, fields)
        else:
            print('No competitions found')