summaryrefslogtreecommitdiff
path: root/python/examples/api/drain
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-06-09 15:37:02 +0000
committerGordon Sim <gsim@apache.org>2010-06-09 15:37:02 +0000
commit8fd5df63aee0a885a232afe795bb0f7805388841 (patch)
treeec00f8ffdc09063e84fc696a53b6ea3e4b2c8f19 /python/examples/api/drain
parentee9c9673fb8ff702f05bee88048555c8409948d0 (diff)
downloadqpid-python-8fd5df63aee0a885a232afe795bb0f7805388841.tar.gz
Minor adjustment to option definitions for Python 2.3
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953044 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/examples/api/drain')
-rwxr-xr-xpython/examples/api/drain8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/api/drain b/python/examples/api/drain
index eaf86f94ac..5e30153bc2 100755
--- a/python/examples/api/drain
+++ b/python/examples/api/drain
@@ -27,17 +27,17 @@ parser = optparse.OptionParser(usage="usage: %prog [options] ADDRESS ...",
description="Drain messages from the supplied address.")
parser.add_option("-b", "--broker", default="localhost",
help="connect to specified BROKER (default %default)")
-parser.add_option("-c", "--count", type=int,
+parser.add_option("-c", "--count", type="int",
help="number of messages to drain")
parser.add_option("-f", "--forever", action="store_true",
help="ignore timeout and wait forever")
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("-t", "--timeout", type=float, default=0,
+parser.add_option("-t", "--timeout", type="float", default=0,
help="timeout in seconds to wait before exiting (default %default)")
parser.add_option("-p", "--print", dest="format", default="%(M)s",
help="format string for printing messages (default %default)")