summaryrefslogtreecommitdiff
path: root/python/examples/api/server
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/api/server')
-rwxr-xr-xpython/examples/api/server4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/api/server b/python/examples/api/server
index 0500e6f380..3b9a3560da 100755
--- a/python/examples/api/server
+++ b/python/examples/api/server
@@ -30,9 +30,9 @@ parser.add_option("-b", "--broker", default="localhost",
help="connect to specified BROKER (default %default)")
parser.add_option("-r", "--reconnect", action="store_true",
help="enable auto reconnect")
-parser.add_option("-i", "--reconnect-interval", type=float, default=3,
+parser.add_option("-i", "--reconnect-interval", type="float", default=3,
help="interval between reconnect attempts")
-parser.add_option("-l", "--reconnect-limit", type=int,
+parser.add_option("-l", "--reconnect-limit", type="int",
help="maximum number of reconnect attempts")
parser.add_option("-v", dest="verbose", action="store_true",
help="enable logging")