Lines Matching refs:parsed_args
226 def _TranslateAlias(parsed_args): argument
240 if parsed_args.which == CMD_CREATE:
241 if (parsed_args.branch and
242 not parsed_args.branch.startswith(constants.BRANCH_PREFIX)):
243 parsed_args.branch = constants.BRANCH_PREFIX + parsed_args.branch
244 parsed_args.build_target = constants.BUILD_TARGET_MAPPING.get(
245 parsed_args.build_target, parsed_args.build_target)
246 return parsed_args
249 def _VerifyArgs(parsed_args): argument
258 if parsed_args.which == CMD_CREATE:
259 if (parsed_args.spec and parsed_args.spec not in constants.SPEC_NAMES):
262 (parsed_args.spec, ", ".join(constants.SPEC_NAMES)))
263 if not ((parsed_args.build_id and parsed_args.build_target) or
264 parsed_args.gce_image or parsed_args.local_disk_image):
269 if bool(parsed_args.build_id) != bool(parsed_args.build_target):
272 if (parsed_args.serial_log_file and
273 not parsed_args.serial_log_file.endswith(".tar.gz")):
276 if (parsed_args.logcat_file and
277 not parsed_args.logcat_file.endswith(".tar.gz")):