diff -r d6088dba8fea -r 2a2d0d5df03b batchquery.py --- a/batchquery.py Tue May 06 18:37:41 2014 +0200 +++ b/batchquery.py Tue May 06 18:37:43 2014 +0200 @@ -12,7 +12,6 @@ self.parser.add_argument('--output', dest='output', type=str, help='File name for results.') self.parser.add_argument('--outputfunc', dest='outputfunc', type=str, help='Python function which will format results (format_row(args, rows)).') self.parser.add_argument('--header', dest='header', action='store_true', help='First line of CSV is header with names for columns. These name can be used in query.') - self.init() def _split_line(self, line): return [x.strip() for x in line.split(',')] @@ -65,5 +64,6 @@ tool = BatchQueryTool() +tool.setup() tool.main()