summaryrefslogtreecommitdiff
path: root/py/demo/Ice/throughput/Server.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/demo/Ice/throughput/Server.py')
-rw-r--r--py/demo/Ice/throughput/Server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/Ice/throughput/Server.py b/py/demo/Ice/throughput/Server.py
index 18ef839ccae..1bcd148b300 100644
--- a/py/demo/Ice/throughput/Server.py
+++ b/py/demo/Ice/throughput/Server.py
@@ -104,6 +104,10 @@ class ThroughputI(Demo.Throughput):
class Server(Ice.Application):
def run(self, args):
+ if len(args) > 1:
+ print self.appName() + ": too many arguments"
+ return 1
+
adapter = self.communicator().createObjectAdapter("Throughput")
adapter.add(ThroughputI(), self.communicator().stringToIdentity("throughput"))
adapter.activate()