def handle(self, args): app = EnumerateApp(args.ini_file, args.l10n_base_dir, args.locales) app.reference = args.reference try: observer = compareApp(app, merge_stage=args.merge, clobber=args.clobber) except (OSError, IOError), exc: print "FAIL: " + str(exc) self.parser.exit(2)
def handle(self, args, options): if len(args) < 2: self.parser.error('Need to pass in list of languages') inipath, l10nbase = args[:2] locales = args[2:] app = EnumerateApp(inipath, l10nbase, locales) app.reference = options.reference try: observer = compareApp(app, merge_stage=options.merge, clobber=options.clobber) except (OSError, IOError), exc: print "FAIL: " + str(exc) self.parser.exit(2)