Lines Matching refs:args

72   args = parser.parse_args()
74 if args.verbose:
77 if not args.deprecated and not args.unchanged and not args.introduced:
78 args.deprecated = args.introduced = True
81 if host_out and not args.analyze_matrix:
84 args.analyze_matrix = analyze_matrix
85 if not args.analyze_matrix:
86 args.analyze_matrix = "analyze_matrix"
89 if top and not args.input:
90 args.input = os.path.join(top, "hardware", "interfaces", "compatibility_matrices")
91 if not args.input:
95 logger.debug("Using analyze_matrix at path: %s", args.analyze_matrix)
96 logger.debug("Dumping compatibility matrices at path: %s", args.input)
97 logger.debug("Show deprecated HALs? %s", args.deprecated)
98 logger.debug("Show unchanged HALs? %s", args.unchanged)
99 logger.debug("Show introduced HALs? %s", args.introduced)
100 logger.debug("Only showing packages %s", args.packages)
102 return args
105 def Analyze(analyze_matrix, file, args, ignore_errors=False): argument
114 command = [analyze_matrix, "--input", file] + args
155 def ReadMatrices(args): argument
162 for child in os.listdir(args.input):
163 file = os.path.join(args.input, child)
164 level, level_name = GetLevel(args.analyze_matrix, file), GetLevelName(args.analyze_matrix, file)
168 action = "--instances" if args.instances else "--interfaces"
169 instances = Analyze(args.analyze_matrix, file, [action, "--requirement"]).split("\n")
255 def GetReport(tuple1, tuple2, args): argument
268 if args.packages:
269 package_matches = lambda package: any(pattern in package for pattern in args.packages)
284 if args.deprecated:
287 if args.unchanged:
289 if args.introduced:
307 args = ParseArgs()
308 if args is None:
310 matrices = ReadMatrices(args)
313 logger.warning("Nothing to show, because no matrices found in '%s'.", args.input)
315 print(GetReport(tuple1, tuple2, args))