Lines Matching defs:args
165 # The args parameter is an parsed argument object containing the following
172 def genTarget(args):
176 makeGenOpts(extensions = args.extension,
177 protect = args.protect,
178 directory = args.directory)
180 if (args.target in genOpts.keys()):
181 createGenerator = genOpts[args.target][0]
182 options = genOpts[args.target][1]
186 startTimer(args.time)
193 endTimer(args.time, '* Time to generate ' + options.filename + ' =')
196 args.target, file=sys.stderr)
233 args = parser.parse_args()
236 args.extension = [name for arg in args.extension for name in arg.split()]
241 startTimer(args.time)
242 tree = etree.parse(args.registry)
243 endTimer(args.time, '* Time to make ElementTree =')
245 startTimer(args.time)
247 endTimer(args.time, '* Time to parse ElementTree =')
249 if (args.validate):
252 if (args.dump):
257 if (args.errfile):
258 errWarn = open(args.errfile, 'w')
262 if (args.diagfile):
263 diag = open(args.diagfile, 'w')
267 if (args.debug):
268 pdb.run('genTarget(args)')
269 elif (args.profile):
271 cProfile.run('genTarget(args)', 'profile.txt')
275 genTarget(args)