Lines Matching refs:args
248 args = parser.parse_args()
249 setup_logging(args)
252 if args.app_list:
253 conflict_args = [args.recursive, args.build_system, args.target, args.exclude, args.paths]
257 if not os.path.exists(args.app_list):
258 raise OSError('File not found {}'.format(args.app_list))
261 if not args.target:
265 args.target = env_target
268 args.target = DEFAULT_TARGET
269 if not args.build_system:
271 args.build_system = BUILD_SYSTEM_CMAKE
272 required_args = [args.build_system, args.target, args.paths]
279 if args.app_list:
280 apps = [json.loads(line) for line in open(args.app_list)]
283 build_system_class = BUILD_SYSTEMS[args.build_system]
284 for path in args.paths:
285 … app_dirs += find_apps(build_system_class, path, args.recursive, args.exclude or [], args.target)
297 config_rules = config_rules_from_str(args.config or [])
301 args.work_dir,
302 args.build_dir,
303 args.build_log,
304 args.target or app['target'],
305 args.build_system or app['build_system'],
312 if args.format != 'json':
315 out = args.output or sys.stdout