def run():
args = parse_args()<EOL>codetools.setup_logging(args.debug)<EOL>global g<EOL>g = pygithub.login_github(token_path=args.token_path, token=args.token)<EOL>if not args.hide:<EOL><INDENT>args.hide = []<EOL><DEDENT>org = g.get_organization(args.organization)<EOL>try:<EOL><INDENT>repos = list(org.get_repos())<EOL><DEDENT>except github.RateLimitExceededException:<EOL><INDENT>raise<EOL><DEDENT>except github.GithubException as e:<EOL><INDENT>msg = '<STR_LIT>'<EOL>raise pygithub.CaughtOrganizationError(org, e, msg) from None<EOL><DEDENT>for r in repos:<EOL><INDENT>try:<EOL><INDENT>teamnames = [t.name for t in r.get_teams()<EOL>if t.name not in args.hide]<EOL><DEDENT>except github.RateLimitExceededException:<EOL><INDENT>raise<EOL><DEDENT>except github.GithubException as e:<EOL><INDENT>msg = '<STR_LIT>'<EOL>raise pygithub.CaughtRepositoryError(r, e, msg) from None<EOL><DEDENT>maxt = args.maxt if (args.maxt is not None and<EOL>args.maxt >= <NUM_LIT:0>) else len(teamnames)<EOL>if args.debug:<EOL><INDENT>print("<STR_LIT>", maxt)<EOL><DEDENT>if args.mint <= len(teamnames) <= maxt:<EOL><INDENT>print(r.name.ljust(<NUM_LIT>) + args.delimiter.join(teamnames))<EOL><DEDENT><DEDENT>
List repos and teams