Get user list of GO IDs either from a list or from GO IDs on the command-line

def read_txt(self, fin_txt, get_goids_only, exclude_ungrouped, prt=sys.stdout):
        """Get user list of GO IDs either from a list or from GO IDs on the command-line"""
        goids_fin = self._read_txt(fin_txt, get_goids_only, exclude_ungrouped)
        sections = self._read_finish(goids_fin, prt)
        # Print summary of GO IDs read
        if prt is not None:
            self._prt_read_msg(prt, fin_txt, exclude_ungrouped)
        return sections