Lines Matching refs:args
163 def _ParseArgs(args): argument
267 if not args:
271 return parser.parse_args(args)
319 def _ParsingConfig(args, cfg): argument
330 if args.which == create_args.CMD_CREATE and args.local_instance is None:
332 if args.which == CMD_CREATE_CUTTLEFISH:
404 args = _ParseArgs(argv)
405 _SetupLogging(args.log_file, args.verbose)
406 _VerifyArgs(args)
409 cfg = config.GetAcloudConfig(args)
410 parsing_config_error = _ParsingConfig(args, cfg)
417 reporter = report.Report(command=args.which)
419 elif args.which == create_args.CMD_CREATE:
420 reporter = create.Run(args)
421 elif args.which == CMD_CREATE_CUTTLEFISH:
424 build_target=args.build_target,
425 build_id=args.build_id,
426 branch=args.branch,
427 kernel_build_id=args.kernel_build_id,
428 kernel_branch=args.kernel_branch,
429 kernel_build_target=args.kernel_build_target,
430 system_branch=args.system_branch,
431 system_build_id=args.system_build_id,
432 system_build_target=args.system_build_target,
433 bootloader_branch=args.bootloader_branch,
434 bootloader_build_id=args.bootloader_build_id,
435 bootloader_build_target=args.bootloader_build_target,
436 gpu=args.gpu,
437 num=args.num,
438 serial_log_file=args.serial_log_file,
439 autoconnect=args.autoconnect,
440 report_internal_ip=args.report_internal_ip,
441 boot_timeout_secs=args.boot_timeout_secs,
442 ins_timeout_secs=args.ins_timeout_secs)
443 elif args.which == CMD_CREATE_GOLDFISH:
446 build_target=args.build_target,
447 build_id=args.build_id,
448 emulator_build_id=args.emulator_build_id,
449 branch=args.branch,
450 emulator_branch=args.emulator_branch,
451 kernel_build_id=args.kernel_build_id,
452 kernel_branch=args.kernel_branch,
453 kernel_build_target=args.kernel_build_target,
454 gpu=args.gpu,
455 num=args.num,
456 serial_log_file=args.serial_log_file,
457 autoconnect=args.autoconnect,
458 tags=args.tags,
459 report_internal_ip=args.report_internal_ip,
460 boot_timeout_secs=args.boot_timeout_secs)
461 elif args.which == delete_args.CMD_DELETE:
462 reporter = delete.Run(args)
463 elif args.which == list_args.CMD_LIST:
464 list_instances.Run(args)
465 elif args.which == reconnect_args.CMD_RECONNECT:
466 reconnect.Run(args)
467 elif args.which == restart_args.CMD_RESTART:
468 reporter = restart.Run(args)
469 elif args.which == powerwash_args.CMD_POWERWASH:
470 reporter = powerwash.Run(args)
471 elif args.which == pull_args.CMD_PULL:
472 reporter = pull.Run(args)
473 elif args.which == setup_args.CMD_SETUP:
474 setup.Run(args)
476 error_msg = "Invalid command %s" % args.which
480 if reporter and args.report_file:
481 reporter.Dump(args.report_file)