def register_list_command(self, list_func):
        """
        Add 'list' command to get a list of projects or details about one project.
        :param list_func: function: run when user choses this option.
        """
        description = "Show a list of project names or folders/files of a single project."
        list_parser = self.subparsers.add_parser('list', description=description)
        project_name_or_auth_role = list_parser.add_mutually_exclusive_group(required=False)
        _add_project_filter_auth_role_arg(project_name_or_auth_role)
        add_project_name_or_id_arg(project_name_or_auth_role, required=False,
                                   help_text_suffix="show details for")
        _add_long_format_option(list_parser, 'Display long format.')
        list_parser.set_defaults(func=list_func)
Add 'list' command to get a list of projects or details about one project.
        :param list_func: function: run when user choses this option.