Lines Matching refs:parser
76 parser = argparse.ArgumentParser(
91 check_args = parser.add_argument_group('Checking payload integrity')
124 apply_args = parser.add_argument_group('Applying payload')
142 parser.add_argument('payload', metavar='PAYLOAD', help='the payload file')
143 parser.add_argument('--part_names', metavar='NAME', nargs='+',
147 args = parser.parse_args(argv)
163 parser.error('partitions in --%s do not match --part_names' % arg)
172 parser.error('%s payload does not accept source partition arguments'
178 parser.error('%s payload requires source partitions arguments'
185 parser.error('--extract-bsdiff can only be used when applying payloads')
187 parser.error('--bspatch-path can only be used when applying payloads')
189 parser.error('--puffpatch-path can only be used when applying payloads')