def do_batch(self, args):
        try:
            doParser = self.arg_batch()
            try:
                doArgs = doParser.parse_args(args.split())
            except __HOLE__ as e:
                return
            with open(doArgs.file) as f:
                for line in f:
                    try:
                        self.run_commands_at_invocation([line])
                    except:
                        printer.out("bad command '"+line+"'", printer.ERROR)
                    print "\n"
        except IOError as e:
            printer.out("File error: "+str(e), printer.ERROR)
            return
        except ArgumentParserError as e:
            printer.out("In Arguments: "+str(e), printer.ERROR)
            self.help_batch()
dataset/ETHPy150Open usharesoft/hammr/src/hammr/hammr.py/Hammr.do_batch