Lines Matching refs:args
81 args = parser.parse_args()
83 if args.includes:
84 if getattr(args, 'start'):
88 if getattr(args, 'end'):
93 if not getattr(args, 'start'):
98 if not getattr(args, 'end'):
99 setattr(args, 'end', datetime.now())
101 if args.end < args.start:
106 if args.tokenfile:
107 with open(args.tokenfile, 'r') as file:
115 setattr(args, 'token', token)
117 return args
287 args = parse_args()
289 if not args:
293 gh = Github(args.token)
299 repo = gh.get_repo(args.org + '/' + args.repo)
305 if args.includes:
306 bp = Backport.by_included_prs(repo, args.base, set(args.includes))
308 bp = Backport.by_date_range(repo, args.base,
309 args.start, args.end, set(args.excludes))
332 if args.json: