summaryrefslogtreecommitdiff
path: root/py/demo/Ice/hello/Client.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/demo/Ice/hello/Client.py')
-rw-r--r--py/demo/Ice/hello/Client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/Ice/hello/Client.py b/py/demo/Ice/hello/Client.py
index 48e7711f2b9..e4c8b61f2f7 100644
--- a/py/demo/Ice/hello/Client.py
+++ b/py/demo/Ice/hello/Client.py
@@ -32,6 +32,10 @@ x: exit
class Client(Ice.Application):
def run(self, args):
+ if len(args) > 1:
+ print self.appName() + ": too many arguments"
+ return 1
+
twoway = Demo.HelloPrx.checkedCast(\
self.communicator().propertyToProxy('Hello.Proxy').ice_twoway().ice_timeout(-1).ice_secure(False))
if not twoway: