loopquery.py
changeset 91 fba99a54ec49
parent 78 64c62ac8f65d
child 93 b72591087495
--- a/loopquery.py	Fri Oct 04 16:38:24 2013 +0200
+++ b/loopquery.py	Mon Dec 09 11:39:28 2013 +0100
@@ -22,11 +22,11 @@
         self.parser.add_argument('--mins', dest='delay_mins', type=int, help='Delay between queries in minutes.')
         self.parser.add_argument('--secs', dest='delay_secs', type=int, help='Delay between queries in seconds.')
 
-        self.config.add_argument('target', type=str, default=None)
-        self.config.add_argument('queries', type=list, default=[])
-        self.config.add_argument('delay_mins', type=int, default=0)
-        self.config.add_argument('delay_secs', type=int, default=0)
-        self.config.add_argument('log_path', type=str)
+        self.config.add_option('target', type=str, default=None)
+        self.config.add_option('queries', type=list, default=[])
+        self.config.add_option('delay_mins', type=int, default=0)
+        self.config.add_option('delay_secs', type=int, default=0)
+        self.config.add_option('log_path', type=str)
 
         self.target_isolation_level = 'autocommit'