summaryrefslogtreecommitdiff
path: root/py/demo/Ice/throughput/Client.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/demo/Ice/throughput/Client.py')
-rw-r--r--py/demo/Ice/throughput/Client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/Ice/throughput/Client.py b/py/demo/Ice/throughput/Client.py
index 6466304e129..1e647f50bd2 100644
--- a/py/demo/Ice/throughput/Client.py
+++ b/py/demo/Ice/throughput/Client.py
@@ -37,6 +37,10 @@ x: exit
class Client(Ice.Application):
def run(self, args):
+ if len(args) > 1:
+ print self.appName() + ": too many arguments"
+ return 1
+
throughput = Demo.ThroughputPrx.checkedCast(self.communicator().propertyToProxy('Throughput.Throughput'))
if not throughput:
print args[0] + ": invalid proxy"